Documentation
¶
Index ¶
- Variables
- func AuthenticateCaller(...) (string, string, error)
- func GetOAuthFlow(ctx context.Context, authFlow, idToken string, skipConfirm bool) (string, error)
- func ReadIDToken(ctx context.Context, tokOrPath string, disableProviders bool, ...) (string, error)
- func RetrieveIDToken(ctx context.Context, c IDTokenConfig) (string, error)
- type IDTokenConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var SigstoreOIDCIssuerAPIVersions = []uint32{1}
Functions ¶
func AuthenticateCaller ¶
func AuthenticateCaller(flow, idToken, oidcIssuer, oidcClientID, oidcClientSecret, oidcRedirectURL string) (string, string, error)
AuthenticateCaller performs an OpenID Connect authentication to exchange credentials for an identity token
func GetOAuthFlow ¶
GetOAuthFlow returns authentication flow that the client will initiate
func ReadIDToken ¶
func ReadIDToken(ctx context.Context, tokOrPath string, disableProviders bool, oidcProvider string) (string, error)
ReadIDToken returns an OpenID Connect token from either a file or a well-known location from an identity provider
func RetrieveIDToken ¶
func RetrieveIDToken(ctx context.Context, c IDTokenConfig) (string, error)
RetrieveIDToken returns an ID token from one of the following sources: * Flag value * File, path provided by flag * Provider, e.g. a well-known location of a token for an environment like K8s or CI/CD * OpenID Connect authentication protocol
Types ¶
Click to show internal directories.
Click to hide internal directories.