WithExtra returns extra fields that be accessed on the returned Oauth Token. These extra fields can override the default fields (id_token, access_token, etc).
(mutateToken func(token map[string]interface{}))
| 307 | // WithExtra returns extra fields that be accessed on the returned Oauth Token. |
| 308 | // These extra fields can override the default fields (id_token, access_token, etc). |
| 309 | func WithMutateToken(mutateToken func(token map[string]interface{})) func(*FakeIDP) { |
| 310 | return func(f *FakeIDP) { |
| 311 | f.hookMutateToken = mutateToken |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | func WithCustomClientAuth(hook func(t testing.TB, req *http.Request) (url.Values, error)) func(*FakeIDP) { |
| 316 | return func(f *FakeIDP) { |
no outgoing calls