Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRouter ¶
func GetRouter(conf *Configuration) *mux.Router
GetRouter returns a router given an APIConfiguration
Types ¶
type Configuration ¶
type Configuration struct { DB storage.Datastore Keystore keystore.Keystore OpenID *openid.DiscoveryConfig }
Configuration includes the datastore, the keystore, and the identity provider
func (*Configuration) GetTokenHandler ¶
func (api *Configuration) GetTokenHandler(w http.ResponseWriter, r *http.Request)
GetTokenHandler is an HTTP handler that takes in basic auth, and gives the user a JWT
type GetTokenResponse ¶
Click to show internal directories.
Click to hide internal directories.