-
Notifications
You must be signed in to change notification settings - Fork 934
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OIDC: Add methods to extract and verify claims (#14928)
Adds a general method `getResultFromClaims` and associated methods to extract claims from ID tokens or userinfo responses. This function verifies that the authenticated party has a `sub` claim, and has an `email` claim that is a valid email address. This is being added because we found that it was possible to authenticate with LXD without an email address claim. This caused an identity to be created with a blank identifier.
- Loading branch information
Showing
1 changed file
with
52 additions
and
22 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