Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { GenerateAccessToken(userID types.UserID) (accessToken types.Token, expiresIn int64, err error) GetUserID(r *http.Request) (types.UserID, error) }
Authenticator interface
type AuthenticatorImpl ¶
type AuthenticatorImpl struct {
// contains filtered or unexported fields
}
AuthenticatorImpl is an implementation of the Authenticator interface.
func (*AuthenticatorImpl) GenerateAccessToken ¶
func (j *AuthenticatorImpl) GenerateAccessToken(userID types.UserID) (accessToken types.Token, expiresIn int64, err error)
GenerateAccessToken creates a new access token.
Click to show internal directories.
Click to hide internal directories.