(config oauthAuthenticatorConfig)
| 116 | } |
| 117 | |
| 118 | func (a OAuthAuthenticator) getAccessTokenFromCache(config oauthAuthenticatorConfig) *tokenResponse { |
| 119 | cacheKey := a.accessTokenCacheKey(config) |
| 120 | token, expiresAt := a.cache.Get(cacheKey) |
| 121 | if token == "" { |
| 122 | return nil |
| 123 | } |
| 124 | return newTokenResponse(token, expiresAt, nil) |
| 125 | } |
| 126 | |
| 127 | func (a OAuthAuthenticator) updateTokenResponseCache(config oauthAuthenticatorConfig, tokenResponse *tokenResponse) { |
| 128 | cacheKey := a.accessTokenCacheKey(config) |
no test coverage detected