Skip to content

Commit efccf43

Browse files
authored
Always return a domain for OIDC
`hd` is a Google Specific claim and is not present in other OIDC providers.
1 parent 4f00337 commit efccf43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oidc/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def dispatch(self, request, helper):
4646
if self.version is None:
4747
domain = extract_domain(payload["email"])
4848
else:
49-
domain = payload.get("hd")
49+
domain = payload.get("hd", extract_domain(payload["email"]))
5050

5151
if domain is None:
5252
return helper.error(ERR_INVALID_DOMAIN % (domain,))

0 commit comments

Comments
 (0)