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
vanny96 and vanny96 authored Jun 14, 2023
1 parent d3a6e66 commit d91b721
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 d91b721

Please sign in to comment.