(mws ...func(http.Handler) http.Handler)
| 256 | } |
| 257 | |
| 258 | func WithMiddlewares(mws ...func(http.Handler) http.Handler) func(*FakeIDP) { |
| 259 | return func(f *FakeIDP) { |
| 260 | f.middlewares = append(f.middlewares, mws...) |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func WithAccessTokenJWTHook(hook func(email string, exp time.Time) jwt.MapClaims) func(*FakeIDP) { |
| 265 | return func(f *FakeIDP) { |
no outgoing calls