MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / mapGroupsToRole

Method mapGroupsToRole

server-source-code/internal/handler/oidc.go:723–728  ·  view source on GitHub ↗
(groups []string)

Source from the content-addressed store, hash-verified

721}
722
723func (h *OidcHandler) mapGroupsToRole(groups []string) string {
724 if h.resolved != nil {
725 return mapGroupsToRoleFromResolved(groups, h.resolved)
726 }
727 return mapGroupsToRoleFromConfig(groups, h.cfg)
728}
729
730func mapGroupsToRoleFromResolved(groups []string, r *config.ResolvedOidcConfig) string {
731 if len(groups) == 0 {

Callers 2

CallbackMethod · 0.95
createOidcUserMethod · 0.95

Calls 2

Tested by

no test coverage detected