Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServiceJwt = "jwt" TimeStamp = "timestamp" CodeExpiry = "expiry" CodeFailed = "failed" )
View Source
const ( ErrAuthFailed = "ErrAuthFailed" ErrEndpointNotFound = "EndpointNotFound" )
View Source
const ( WeChat = "wechat" WeChatMiniProgram = "wechat_miniprogram" AliPay = "alipay" )
View Source
const (
ServiceOAuth = "oauth"
)
View Source
const (
ServiceTotp = "totp"
)
Variables ¶
View Source
var Secret = "LijwefL(*IJWE)J@309j@#)(I#$@)(*"
Functions ¶
This section is empty.
Types ¶
type BaseOAuth ¶
func (*BaseOAuth) AddEndpoint ¶
type IOAuthProvider ¶
type IServiceJwt ¶
type IServiceOAuth ¶
type IServiceTotp ¶
type Response ¶
type Response struct { Type string `json:"type"` OpenID string `json:"open_id"` UnionID string `json:"union_id"` Name string `json:"name"` // 0:未知 1:男 2:女 Gender int `json:"gender"` Province string `json:"province"` City string `json:"city"` Country string `json:"country"` Avatar string `json:"avatar"` Mobile string }
Click to show internal directories.
Click to hide internal directories.