Documentation ¶
Index ¶
- Constants
- Variables
- type AuthJwt
- func (a *AuthJwt) Authentication(token string) (user *v1beta1.UserInfo, err error)
- func (a *AuthJwt) GenerateToken(user *v1beta1.UserInfo) (string, error)
- func (a *AuthJwt) GenerateTokenWithExpired(user *v1beta1.UserInfo, expireDuration int64) (string, error)
- func (a *AuthJwt) RefreshToken(token string) (*v1beta1.UserInfo, string, error)
- type Claims
Constants ¶
View Source
const BearerTokenPrefix = "Bearer"
Variables ¶
View Source
var (
Config authentication.JwtConfig
)
Functions ¶
This section is empty.
Types ¶
type AuthJwt ¶ added in v1.1.0
func GetAuthJwtImpl ¶ added in v1.1.0
func GetAuthJwtImpl() *AuthJwt
func (*AuthJwt) Authentication ¶ added in v1.1.0
func (*AuthJwt) GenerateToken ¶ added in v1.1.0
func (*AuthJwt) GenerateTokenWithExpired ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.