Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // Login issues bearer tokens for a client. // A client has to identity itself by his correct username and password pair. // In response, a TokenReviewRequest will be send containing the issued bearer token for the client and user information Login(username, password string) (*models.TokenReviewRequest, error) // Authenticate authenticates a client by a bearer token. // In response, a TokenReviewRequest is sent to the client. Authenticate(bearerToken string) (*models.TokenReviewRequest, error) }
Provider is an interface representing an identity provider. The identity provider is responsible for issuing bearer tokens for clients (login) and offers authentication of the tokens (authenticate)
Click to show internal directories.
Click to hide internal directories.