feat: get claims from github and google

This commit is contained in:
Stavros
2025-04-30 19:49:35 +03:00
parent 3dff650e71
commit d171c5940b
6 changed files with 121 additions and 22 deletions

View File

@@ -283,6 +283,12 @@ func (auth *Auth) OAuthGroup(c *gin.Context, context types.UserContext, labels t
return true
}
// Check if we are using the generic oauth provider
if context.Provider != "generic" {
log.Debug().Msg("Not using generic provider, skipping group check")
return true
}
// Split the groups by comma (no need to parse since they are from the API response)
oauthGroups := strings.Split(context.OAuthGroups, ",")