(userInfoFunc func(email string) (jwt.MapClaims, error))
| 361 | } |
| 362 | |
| 363 | func WithDynamicUserInfo(userInfoFunc func(email string) (jwt.MapClaims, error)) func(*FakeIDP) { |
| 364 | return func(f *FakeIDP) { |
| 365 | f.hookUserInfo = userInfoFunc |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | // WithServing makes the IDP run an actual http server. |
| 370 | func WithServing() func(*FakeIDP) { |
no outgoing calls