This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added OIDC support for UserInfo Endpoint Email Verification
* Current OIDC implementation asserts that user email check must come from JWT token claims. OIDC specification also allows for source of user email to be fetched from userinfo profile endpoint. http://openid.net/specs/openid-connect-core-1_0.html#UserInfo * Modified current code to search for email in JWT token claims first, and then fall back to requesting email from userinfo endpoint. * Modified URL encoding to use '%20' instead of '+' for encoding spaces, which is more proper. Some OpenID servers do not accept '+' encoding for the http query arg "scope" (e.g. bad: "openid+profile+email" good: "openid%20profilie%20email")
- Loading branch information
1 parent
b7f9438
commit e17f3e3
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters