Documentation
¶
Overview ¶
Package authn resolves and refreshes credentials shared by CLI entry points.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSessionExpired = errors.New("session expired, run melange auth login")
ErrSessionExpired indicates that the authorization server rejected the refresh grant and the stale OAuth credentials were cleared.
Functions ¶
func ResolveAnyToken ¶
func ResolveAnyToken(ctx context.Context, cfg *config.Config, issuerHost, hostKey string, transport http.RoundTripper) (config.Resolved, *config.OAuthCredentials, error)
ResolveAnyToken resolves credentials and refreshes stale OAuth tokens. A refresh is persisted to the same backend it was loaded from so a successful refresh cannot leave a stale, higher-precedence credential in another store.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.