Documentation ¶
Index ¶
- func CheckSignature(lastLoginTime int64, logger *zap.SugaredLogger) error
- func CreateToken(claims *Claims) (string, error)
- func GetCaptcha(logger *zap.SugaredLogger) (string, string, error)
- func LocalLogout(userID string, logger *zap.SugaredLogger) (bool, string, error)
- func ThirdPartyLoginEnabled() *enabledStatus
- type CheckSignatureRes
- type Claims
- type FederatedClaims
- type LoginArgs
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSignature ¶
func CheckSignature(lastLoginTime int64, logger *zap.SugaredLogger) error
func CreateToken ¶
func GetCaptcha ¶
func GetCaptcha(logger *zap.SugaredLogger) (string, string, error)
func LocalLogout ¶
func ThirdPartyLoginEnabled ¶
func ThirdPartyLoginEnabled() *enabledStatus
Types ¶
type CheckSignatureRes ¶
type Claims ¶
type Claims struct { Name string `json:"name"` Email string `json:"email"` UID string `json:"uid"` PreferredUsername string `json:"preferred_username"` FederatedClaims FederatedClaims `json:"federated_claims"` jwt.StandardClaims }
type FederatedClaims ¶
Click to show internal directories.
Click to hide internal directories.