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 @@ -54,6 +54,7 @@ def verify_access_token(token: str) -> AuthInfo:
54
54
If the token is valid, it returns an `AuthInfo` object containing the user's information.
55
55
"""
56
56
57
+ issuer = auth_server_config .metadata .issuer
57
58
endpoint = auth_server_config .metadata .userinfo_endpoint
58
59
if not endpoint :
59
60
raise ValueError (
@@ -74,7 +75,7 @@ def verify_access_token(token: str) -> AuthInfo:
74
75
subject = json .get (
75
76
"sub"
76
77
), # '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
78
79
claims = json , # Include all claims (JSON fields) returned by the userinfo endpoint
79
80
)
80
81
# `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