MCPcopy Create free account
hub / github.com/UiPath/uipathcli / refreshTokenCacheKey

Method refreshTokenCacheKey

auth/oauth_authenticator.go:142–145  ·  view source on GitHub ↗
(config oauthAuthenticatorConfig)

Source from the content-addressed store, hash-verified

140}
141
142func (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
147func (a OAuthAuthenticator) login(config oauthAuthenticatorConfig, state string, codeChallenge string) (string, error) {
148 ctx, cancel := context.WithTimeout(context.Background(), time.Duration(120)*time.Second)

Callers 2

renewAuthTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected