Skip to content

Commit db9cb1c

Browse files
committed
docstring of public validate method
1 parent c8e17eb commit db9cb1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fastapi_azure_auth/auth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ async def __call__(self, request: Request, security_scopes: SecurityScopes) -> O
246246
raise
247247

248248
def validate(self, access_token: str, key: str, iss: str, options: Dict[str, Any]) -> Dict[str, Any]:
249+
"""
250+
Validates the token using the provided key and options.
251+
"""
249252
alg = 'RS256'
250253
aud = self.app_client_id if self.token_version == 2 else f'api://{self.app_client_id}'
251254
return jwt.decode(

0 commit comments

Comments
 (0)