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

Method getClaims

coderd/coderdtest/oidctest/idp.go:1725–1734  ·  view source on GitHub ↗
(m *syncmap.Map[string, jwt.MapClaims], key string)

Source from the content-addressed store, hash-verified

1723}
1724
1725func (f *FakeIDP) getClaims(m *syncmap.Map[string, jwt.MapClaims], key string) (jwt.MapClaims, bool) {
1726 v, ok := m.Load(key)
1727 if !ok || v == nil {
1728 if f.defaultIDClaims != nil {
1729 return f.defaultIDClaims, true
1730 }
1731 return nil, false
1732 }
1733 return v, true
1734}
1735
1736func slogRequestFields(r *http.Request) []slog.Field {
1737 return []slog.Field{

Callers 1

httpHandlerMethod · 0.95

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected