Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(config Config) (*Authenticator, error)
func (*Authenticator) IssueAccessToken ¶
func (auth *Authenticator) IssueAccessToken(subject string) (string, error)
func (*Authenticator) IssueJwt ¶
func (auth *Authenticator) IssueJwt(claims jwt.Claims) (string, error)
func (*Authenticator) VerifyJwt ¶
func (auth *Authenticator) VerifyJwt(tokenString string) (*jwt.Token, error)
Click to show internal directories.
Click to hide internal directories.