Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authn ¶
type Authn struct {
// URL of the issuer. This is typically the base URL of the identity provider.
IssuerURL string
// Audience for which the token is intended. It must match the audience in the JWT.
Audience string
// URL of the JSON Web Key Set (JWKS). This URL hosts public keys used to verify JWT signatures.
JwksURI string
// contains filtered or unexported fields
} // End of Authn struct
func NewOidcAuthn ¶
It takes in a context for managing cancellation and a configuration object. It returns a pointer to an Authn instance or an error.
type Config ¶
type Config struct {
// Issuer is the OIDC provider's unique identifier URL.
Issuer string `json:"issuer"`
// JWKsURI is the URL to the JSON Web Key Set (JWKS) provided by the OIDC issuer.
JWKsURI string `json:"jwks_uri"`
}
Config holds OpenID Connect (OIDC) configuration details.
type SlogAdapter ¶
SlogAdapter adapts the slog.Logger to be compatible with retryablehttp.LeveledLogger.
func (SlogAdapter) Debug ¶
func (a SlogAdapter) Debug(msg string, keysAndValues ...interface{})
Debug logs messages at debug level.
func (SlogAdapter) Error ¶
func (a SlogAdapter) Error(msg string, keysAndValues ...interface{})
Error logs messages at error level.
func (SlogAdapter) Info ¶
func (a SlogAdapter) Info(msg string, keysAndValues ...interface{})
Info logs messages at info level.
func (SlogAdapter) Warn ¶
func (a SlogAdapter) Warn(msg string, keysAndValues ...interface{})
Warn logs messages at warn level.
Click to show internal directories.
Click to hide internal directories.