MCPcopy Index your code
hub / github.com/coder/coder / claimFields

Function claimFields

coderd/userauth.go:1631–1638  ·  view source on GitHub ↗

claimFields returns the sorted list of fields in the claims map.

(claims map[string]interface{})

Source from the content-addressed store, hash-verified

1629
1630// claimFields returns the sorted list of fields in the claims map.
1631func claimFields(claims map[string]interface{}) []string {
1632 fields := []string{}
1633 for field := range claims {
1634 fields = append(fields, field)
1635 }
1636 slices.Sort(fields)
1637 return fields
1638}
1639
1640// blankFields returns the list of fields in the claims map that are
1641// an empty string.

Callers 2

userOIDCMethod · 0.85
userInfoClaimsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected