You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I updated from 4.0.0 to 4.1.1 version and hit an issue regarding the following token claims - aio, uti, rh. They are required in fastapi_azure_auth.user.Claims class but according to Azure AD doc they are optional.
To Reproduce
Here's an example jwt token body from my infrastructure:
Instantiate fastapi_azure_auth.user.User class with the example token body above.
Stack trace
Unable to process jwt token. Uncaught error: 3 validation errors for User
aio
field required (type=value_error.missing)
uti
field required (type=value_error.missing)
rh
field required (type=value_error.missing)
Traceback (most recent call last):
File "C:\***\Lib\site-packages\fastapi_azure_auth\auth.py", line 208, in __call__
user: User = User(
^^^^^
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 3 validation errors for User
aio
field required (type=value_error.missing)
uti
field required (type=value_error.missing)
rh
field required (type=value_error.missing)
Your configuration
I'm in the single tenant case (fastapi_azure_auth.auth.SingleTenantAzureAuthorizationCodeBearer).
The text was updated successfully, but these errors were encountered:
Describe the bug
I updated from 4.0.0 to 4.1.1 version and hit an issue regarding the following token claims - aio, uti, rh. They are required in
fastapi_azure_auth.user.Claims
class but according to Azure AD doc they are optional.To Reproduce
Here's an example jwt token body from my infrastructure:
fastapi_azure_auth.user.User
class with the example token body above.Stack trace
Your configuration
I'm in the single tenant case (fastapi_azure_auth.auth.SingleTenantAzureAuthorizationCodeBearer).
The text was updated successfully, but these errors were encountered: