Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Provider = providerKey{}
Provider is used to add an authn.Client as an api.Router provider
Functions ¶
Types ¶
type AuthN ¶
type AuthN struct { // Host holds the authn-server endpoint (domain name) // It is used as the JWT token issuer as wel Host string // PrivateBaseURL can be used to configure a different domain name // when interacting with a private API endpoint of the authn-server PrivateBaseURL string // Audience configures the audience that is allowed to use the service // If set, the first audience configured is the "main" audience and used // by default Audience []string // Username is the HTTP Basic-Authentication username required for private // authn-server endpoints Username string // Password is the HTTP Basic-Authenticaiton password required for private // authn-server endpoints Password string }
AuthN holds the configuration for the authn-server that is used for any authentication requests
Click to show internal directories.
Click to hide internal directories.