Method
getClaims
(m *syncmap.Map[string, jwt.MapClaims], key string)
Source from the content-addressed store, hash-verified
| 1723 | } |
| 1724 | |
| 1725 | func (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 | |
| 1736 | func slogRequestFields(r *http.Request) []slog.Field { |
| 1737 | return []slog.Field{ |
Tested by
no test coverage detected