Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeimdallClaims ¶
type HeimdallClaims struct {
Principal string `json:"principal"`
Email string `json:"email,omitempty"`
}
HeimdallClaims contains extra custom claims we want to parse from the JWT token.
type JWTAuth ¶
type JWTAuth struct {
// contains filtered or unexported fields
}
func NewJWTAuth ¶
func NewJWTAuth(config JWTAuthConfig) (*JWTAuth, error)
NewJWTAuth creates a new JWT authentication service
type JWTAuthConfig ¶
type JWTAuthConfig struct {
// JWKSURL is the URL to the JSON Web Key Set endpoint
JWKSURL string
// Audience is the intended audience for the JWT token
Audience string
// MockLocalPrincipal is used for local development to bypass JWT validation
MockLocalPrincipal string
}
JWTAuthConfig holds the configuration parameters for JWT authentication.
Click to show internal directories.
Click to hide internal directories.