Documentation
¶
Index ¶
Constants ¶
View Source
const ( // JWKSEndpoint is the endpoint that serves the JWKS for JWT validation JWKSEndpoint = "/jwks.json" // OIDCDiscoveryEndpoint is the endpoint that serves the OIDC discovery document OIDCDiscoveryEndpoint = "/.well-known/openid-configuration" // AuthorizationEndpoint is the endpoint for OIDC authorization AuthorizationEndpoint = "/authorize" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Port is the port that the server will listen on
Port int
// ListenAddress is the address the server will listen on
ListenAddress string
// JWKS is the JSON Web Key Set (JWKS) for the server
JWKS []byte
// Healthz is the health interface for the server
Healthz healthz.Healthz
// JWKSURI is the public URI where the JWKS can be accessed (if different from server address)
JWKSURI *string
// AllowedHosts is a list of allowed hosts that a client request will be valid for.
AllowedHosts []string
TLSCertPath *string
TLSKeyPath *string
// JWTIssuer is the issuer to use for JWT tokens (if not set, issuer not set)
JWTIssuer *string
// PathPrefix is a prefix to add to all HTTP endpoints
PathPrefix *string
// SignatureAlgorithm is the signature algorithm to use for JWT tokens
SignatureAlgorithm jwa.KeyAlgorithm
}
Options is the configuration options for the HTTP server
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a HTTP server that partially implements the OIDC spec. Its purpose is only to support 3rd party resource providers being able to verify the JWT tokens issued by the Sentry server which may be used by the Dapr runtime to authenticate to components.
Click to show internal directories.
Click to hide internal directories.