Skip to content

Commit

Permalink
fix: Remove 401 Unauthorized when customClaimGroup retrieval fails, F…
Browse files Browse the repository at this point in the history
…ixes #11032 (#11033)

Signed-off-by: Giovanni Barbaro <vanni-96@hotmail.it>
Co-authored-by: Giovanni Barbaro <vanni-96@hotmail.it>
  • Loading branch information
2 people authored and terrytangyuan committed Jul 19, 2023
1 parent e6d19c9 commit 6f57159
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/auth/sso/sso.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ func (s *sso) HandleCallback(w http.ResponseWriter, r *http.Request) {
if s.customClaimName != "" {
groups, err = c.GetCustomGroup(s.customClaimName)
if err != nil {
w.WriteHeader(401)
return
log.Warn(err)
}
}

Expand Down

0 comments on commit 6f57159

Please sign in to comment.