Skip to content

Commit 247570e

Browse files
committed
get data from userinfo
1 parent edc1d70 commit 247570e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bornhack_allauth_provider/provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class BornHackProvider(OpenIDConnectProvider):
1717

1818
def extract_uid(self, data: dict[str, str]) -> str:
1919
"""Get BornHack username from the OIDC standard claim 'sub'."""
20-
return str(data["sub"])
20+
return str(data["userinfo"]["sub"])
2121

2222
def extract_common_fields(self, data: dict[str, str]) -> dict[str, str]:
2323
"""Map OIDC user claims to the data dict used in BornHackSocialAccountAdapter.populate_user()."""

0 commit comments

Comments
 (0)