JWT.Authenticate: remove err != nil check for error that has already been checked (#107727)

This commit is contained in:
Bruno
2025-07-08 11:19:39 -03:00
committed by GitHub
parent 4830969305
commit 0f23988132
-3
View File
@@ -114,9 +114,6 @@ func (s *JWT) Authenticate(ctx context.Context, r *authn.Request) (*authn.Identi
if !s.cfg.JWTAuth.SkipOrgRoleSync {
role, grafanaAdmin := s.extractRoleAndAdmin(claims)
if err != nil {
s.log.Warn("Failed to extract role", "err", err)
}
if s.cfg.JWTAuth.AllowAssignGrafanaAdmin {
id.IsGrafanaAdmin = &grafanaAdmin