Documentation
¶
Overview ¶
Package oidc authenticates a request by a signed OIDC JWT from any issuer, and maps a claim of the JWT to a scope on a repository with rules. An identity-aware proxy that signs a JWT with a key set is one configuration of it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Issuer is the exact value of the iss claim.
Issuer string
// Audience must be one of the aud claims.
Audience string
// KeysURL is the address of the key set. When it is empty, the key set is the jwks_uri of the discovery
// document at <Issuer>/.well-known/openid-configuration.
KeysURL string
// Header names the header that carries the JWT. Default Authorization, as a Bearer token or the password of a
// Basic credential. Any other header carries the bare JWT.
Header string
// Claim names the claim that holds the subject text that the rules match. Default email.
Claim string
// Algs lists the accepted signature algorithms: RS256, RS384, RS512, ES256 or ES384. Default RS256.
Algs []string
Client *http.Client
Now func() time.Time
}
Config is the deployment of one issuer.