Skip to content

Commit

Permalink
Reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhric committed Jan 6, 2025
1 parent d00e602 commit 06c369e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rdpgw/web/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (h *OIDC) HandleCallback(w http.ResponseWriter, r *http.Request) {
}

func findUsernameInClaims(data map[string]interface{}) string {
candidates := []string{"email"}
candidates := []string{"preferred_username", "unique_name", "upn", "username"}
for _, claim := range candidates {
userName, found := data[claim].(string)
if found {
Expand Down

0 comments on commit 06c369e

Please sign in to comment.