File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ def verify_access_token(token: str) -> AuthInfo:
5454 If the token is valid, it returns an `AuthInfo` object containing the user's information.
5555 """
5656
57+ issuer = auth_server_config .metadata .issuer
5758 endpoint = auth_server_config .metadata .userinfo_endpoint
5859 if not endpoint :
5960 raise ValueError (
@@ -74,7 +75,7 @@ def verify_access_token(token: str) -> AuthInfo:
7475 subject = json .get (
7576 "sub"
7677 ), # 'sub' is a standard claim for the subject (user's ID)
77- issuer = auth_issuer , # Use the configured issuer
78+ issuer = issuer , # Use the issuer from the metadata
7879 claims = json , # Include all claims (JSON fields) returned by the userinfo endpoint
7980 )
8081 # `AuthInfo` is a Pydantic model, so validation errors usually mean the response didn't match
You can’t perform that action at this time.
0 commit comments