Documentation ¶
Index ¶
- type Authenticator
- type Authorizer
- func (a *Authorizer) GetToken(uuid string) (string, error)
- func (a *Authorizer) ParseToken(accessToken string) (string, error)
- func (a *Authorizer) SignIn(ctx context.Context, user *models.User, code string) (string, error)
- func (a *Authorizer) StartAuthentication(ctx context.Context, user *models.User) error
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func New ¶
func New(log *logrus.Logger, auth Authenticator, key string) *Authorizer
func (*Authorizer) ParseToken ¶
func (a *Authorizer) ParseToken(accessToken string) (string, error)
func (*Authorizer) StartAuthentication ¶
type Claims ¶
type Claims struct { jwt.StandardClaims UUID string `json:"uuid"` }
Click to show internal directories.
Click to hide internal directories.