authn

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL