(config oauthAuthenticatorConfig)
| 140 | } |
| 141 | |
| 142 | func (a OAuthAuthenticator) refreshTokenCacheKey(config oauthAuthenticatorConfig) string { |
| 143 | identityBaseUri := config.IdentityUri |
| 144 | return fmt.Sprintf("oauthrefreshtoken|%s|%s|%s|%s|%s", identityBaseUri.Scheme, identityBaseUri.Hostname(), config.ClientId, config.ClientSecret, config.Scopes) |
| 145 | } |
| 146 | |
| 147 | func (a OAuthAuthenticator) login(config oauthAuthenticatorConfig, state string, codeChallenge string) (string, error) { |
| 148 | ctx, cancel := context.WithTimeout(context.Background(), time.Duration(120)*time.Second) |
no outgoing calls
no test coverage detected