Skip to content
Snippets Groups Projects
Unverified Commit 6325c0c4 authored by fliaping's avatar fliaping Committed by GitHub
Browse files

add "username" as claim key (#98)

parent db00db13
Branches
Tags
No related merge requests found
......@@ -99,7 +99,7 @@ func (h *OIDC) HandleCallback(w http.ResponseWriter, r *http.Request) {
}
func findUsernameInClaims(data map[string]interface{}) string {
candidates := []string{"preferred_username", "unique_name", "upn"}
candidates := []string{"preferred_username", "unique_name", "upn", "username"}
for _, claim := range candidates {
userName, found := data[claim].(string)
if found {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment