(id, secret string)
| 294 | } |
| 295 | |
| 296 | func WithStaticCredentials(id, secret string) func(*FakeIDP) { |
| 297 | return func(f *FakeIDP) { |
| 298 | if id != "" { |
| 299 | f.clientID = id |
| 300 | } |
| 301 | if secret != "" { |
| 302 | f.clientSecret = secret |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | |
| 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). |
no outgoing calls