Skip to content

Commit

Permalink
Merge pull request #2859 from gravitl/release-v0.23.0
Browse files Browse the repository at this point in the history
patch: fix azure-ad,github callback
  • Loading branch information
abhishek9686 authored Mar 15, 2024
2 parents d390f44 + d70d33f commit 194a900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion auth/azure-ad.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func handleAzureCallback(w http.ResponseWriter, r *http.Request) {
return
}
}
user, err := logic.GetUser(content.Email)
user, err := logic.GetUser(content.UserPrincipalName)
if err != nil {
handleOauthUserNotFound(w)
return
Expand Down
2 changes: 1 addition & 1 deletion auth/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func handleGithubCallback(w http.ResponseWriter, r *http.Request) {
return
}
}
user, err := logic.GetUser(content.Email)
user, err := logic.GetUser(content.Login)
if err != nil {
handleOauthUserNotFound(w)
return
Expand Down

0 comments on commit 194a900

Please sign in to comment.