Skip to content

Commit

Permalink
Make upn optional to support Client Credential Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKs committed Aug 18, 2021
1 parent 5c0c950 commit 3d58e9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastapi_azure_auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0'
__version__ = '2.0.1'
2 changes: 1 addition & 1 deletion fastapi_azure_auth/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class User(BaseModel):
family_name: Optional[str] = Field(default=None, description='Family name')
unique_name: Optional[str] = Field(default=None, description='Unique name')
ipaddr: Optional[IPvAnyAddress] = Field(default=None, description='IP address when token was claimed')
upn: str = Field(..., description='UPN')
upn: Optional[str] = Field(default=None, description='UPN')
roles: list[str] = Field(default=[], description='Roles (Groups) the user has for this app')
claims: dict = Field(..., description='The entire decoded token')
scp: Optional[str] = Field(default=None, description='Scope')
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fastapi-azure-auth"
version = "2.0.0" # Remember to change in __init__.py as well
version = "2.0.1" # Remember to change in __init__.py as well
description = "Easy and secure implementation of Azure AD for your FastAPI APIs"
authors = ["Jonas Krüger Svensson <jonas.svensson@intility.no>"]
readme = "README.md"
Expand Down

0 comments on commit 3d58e9f

Please sign in to comment.