Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( DefaultBindAddress = ":8000" DefaultJWKSEndpoint = "" // use the audience DefaultProjectID = firestore.DetectProjectID )
config defaults
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(cfg *config)
An Option customizes the config.
func WithBindAddress ¶
WithBindAddress sets the bind address in the config.
func WithExpectedJWTAudience ¶
WithExpectedJWTAudience sets the expected JWT audience claim in the config. If set to the empty string, the audience claim will not be validated.
func WithExpectedJWTIssuer ¶
WithExpectedJWTIssuer sets the expected JWT issuer claim in the config. If set to the empty string, the issuer claim will not be validated.
func WithExtraCACerts ¶
WithExtraCACerts adds paths to custom CA certificates to the config. Certificates added with this option will be used in addition to the system default pool.
func WithFirestoreProjectID ¶
WithFirestoreProjectID sets the firestore project id in the config.
func WithJWKSEndpoint ¶
WithJWKSEndpoint sets the jwks endpoint in the config.