SetConfig sets the ID Token verifier and token endpoint URLs on OIDCClient
(verifier *oidc.IDTokenVerifier, endpoint oauth2.Endpoint)
| 123 | |
| 124 | // SetConfig sets the ID Token verifier and token endpoint URLs on OIDCClient |
| 125 | func (client *OIDCClient) SetConfig(verifier *oidc.IDTokenVerifier, endpoint oauth2.Endpoint) { |
| 126 | client.mutex.Lock() |
| 127 | client.verifier = verifier |
| 128 | client.config = &oauth2.Config{ |
| 129 | ClientID: client.config.ClientID, |
| 130 | ClientSecret: client.config.ClientSecret, |
| 131 | Endpoint: endpoint, |
| 132 | RedirectURL: client.config.RedirectURL, |
| 133 | Scopes: client.config.Scopes, |
| 134 | } |
| 135 | client.mutex.Unlock() |
| 136 | } |
| 137 | |
| 138 | type OIDCProvider struct { |
| 139 | JWTConfigCommon |