Documentation ¶
Index ¶
Constants ¶
View Source
const (
ProviderName = "jwt"
)
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
Types ¶
type TokenAuthenticator ¶
type TokenAuthenticator struct {
// contains filtered or unexported fields
}
func (*TokenAuthenticator) AuthenticateToken ¶
func (a *TokenAuthenticator) AuthenticateToken(ctx context.Context, token string) (*authentication.Response, bool, error)
type TokenGenerator ¶
type TokenGenerator struct {
// contains filtered or unexported fields
}
func NewTokenGenerator ¶
func NewTokenGenerator(ttl, privateKey, signMethod string) (*TokenGenerator, error)
func (*TokenGenerator) GenerateToken ¶
Click to show internal directories.
Click to hide internal directories.