WithStaticUserInfo is optional, but will return the same user info for every user on the /userinfo endpoint.
(info jwt.MapClaims)
| 334 | // WithStaticUserInfo is optional, but will return the same user info for |
| 335 | // every user on the /userinfo endpoint. |
| 336 | func WithStaticUserInfo(info jwt.MapClaims) func(*FakeIDP) { |
| 337 | return func(f *FakeIDP) { |
| 338 | f.hookUserInfo = func(_ string) (jwt.MapClaims, error) { |
| 339 | return info, nil |
| 340 | } |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | func WithRevokeTokenRFC(revokeFunc HookRevokeTokenFn) func(*FakeIDP) { |
| 345 | return func(f *FakeIDP) { |
no outgoing calls