File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77from fastapi_msal .core import MSALClientConfig , OptStr
88from fastapi_msal .models import AuthToken , BearerToken , IDTokenClaims
99from fastapi_msal .security import MSALAuthCodeHandler , MSALScheme
10+ from fastapi_msal .models .id_token_claims import TokenStatus
1011
1112
1213class MSALAuthorization :
@@ -92,7 +93,7 @@ async def check_authenticated_session(self, request: Request) -> bool:
9293 auth_token : Optional [AuthToken ] = await self .get_session_token (request )
9394 if auth_token :
9495 token_claims : Optional [IDTokenClaims ] = await self .handler .parse_id_token (token = auth_token )
95- if token_claims and token_claims .validate_token ():
96+ if token_claims and token_claims .validate_token () == TokenStatus . VALID :
9697 return True
9798 return False
9899
You can’t perform that action at this time.
0 commit comments