(hook func(t testing.TB, req *http.Request) (url.Values, error))
| 313 | } |
| 314 | |
| 315 | func WithCustomClientAuth(hook func(t testing.TB, req *http.Request) (url.Values, error)) func(*FakeIDP) { |
| 316 | return func(f *FakeIDP) { |
| 317 | f.hookAuthenticateClient = hook |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | // WithLogging is optional, but will log some HTTP calls made to the IDP. |
| 322 | func WithLogging(t testing.TB, options *slogtest.Options) func(*FakeIDP) { |
no outgoing calls