Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultTokenTTL = 5 * time.Minute
Variables ¶
View Source
var ( ErrInteractionRequired = errors.New("sts: interaction required") ErrNoUserIdentity = errors.New("sts: exchange requires an inbound user token") )
Functions ¶
This section is empty.
Types ¶
type Exchanger ¶
type Exchanger interface {
Exchange(ctx context.Context, principal *identity.Principal, gatewayID ids.GatewayID, cfg *registrydomain.MCPAuth, cacheKey string) (*Token, error)
}
func NewExchanger ¶
func NewExchanger(signer TokenSigner, credentials appauth.CredentialFinder, idp IdPTokenClient) Exchanger
type IdPTokenClient ¶
Click to show internal directories.
Click to hide internal directories.