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

Method accessTokenCacheKey

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

Source from the content-addressed store, hash-verified

135}
136
137func (a OAuthAuthenticator) accessTokenCacheKey(config oauthAuthenticatorConfig) string {
138 identityBaseUri := config.IdentityUri
139 return fmt.Sprintf("oauthaccesstoken|%s|%s|%s|%s|%s", identityBaseUri.Scheme, identityBaseUri.Hostname(), config.ClientId, config.ClientSecret, config.Scopes)
140}
141
142func (a OAuthAuthenticator) refreshTokenCacheKey(config oauthAuthenticatorConfig) string {
143 identityBaseUri := config.IdentityUri

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected