Documentation ¶
Index ¶
Constants ¶
View Source
const ( GrantType = "grant_type" Scope = "scope" ClientID = "client_id" ClientSecret = "client_secret" State = "state" RedirectURI = "redirect_uri" ResponseType = "response_type" Code = "code" Username = "username" Password = "password" RefreshToken = "refresh_token" UserOAuthApproval = "user_oauth_approval" ScopePrefix = "scope." )
OAuth2 请求映射参数常量
View Source
const ( GrantTypePassword = "password" GrantTypeCode = "authorization_code" GrantTypeImplicit = "implicit" GrantTypeClient = "client_credentials" GrantTypeRefresh = "refresh_token" )
授权类型
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenPayloadKey ¶
type TokenPayloadKey string
TokenPayloadKey Token载体key
const ( TokenUsername TokenPayloadKey = "username" TokenUser TokenPayloadKey = "user" TokenAud TokenPayloadKey = "aud" TokenClientID TokenPayloadKey = "client_id" TokenExp TokenPayloadKey = "exp" TokenJti TokenPayloadKey = "jti" TokenGrantType TokenPayloadKey = "grant_type" TokenAti TokenPayloadKey = "ati" TokenScope TokenPayloadKey = "scope" TokenAuthorities TokenPayloadKey = "authorities" )
Token载体key
Click to show internal directories.
Click to hide internal directories.