Documentation
¶
Overview ¶
Package identity is who calls `beekeeper serve`: a person, from the Dex ID token muster forwards (or an installation exchanged), validated against the issuer's JWKS. A person is their verified email, never the token's subject, which Dex scopes to a connector and which differs between installations; their team comes from their groups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Caller ¶
type Caller struct {
// Email is the token's verified email: the person's key in every record.
Email string
// Team is the team of the most specific configured group the person is
// in (config.Serve.TeamGroups).
Team string
Groups []string
}
Caller is a verified person.
type RefusedError ¶
type RefusedError struct{ Reason string }
RefusedError is a token or person the server does not accept.
func (*RefusedError) Error ¶
func (e *RefusedError) Error() string
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier checks ID tokens against one issuer and the configured audiences, organization and teams.
func New ¶
New discovers the issuer's keys and returns its verifier. It refuses a configuration that would let anyone in.
func (*Verifier) Supervises ¶
Supervises reports whether c holds team's supervisor role.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package identitytest is a Dex stand-in for tests: an OIDC issuer that serves its discovery document and keys and signs ID tokens.
|
Package identitytest is a Dex stand-in for tests: an OIDC issuer that serves its discovery document and keys and signs ID tokens. |