Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyClientID = "client_id" KeyScope = "scope" KeyState = "state" KeyRedirectURI = "redirect_uri" KeyAuthorize = "authorize" KeyCode = "code" KeyRefreshToken = "refresh_token" KeyClientSecret = "client_secret" KeyGrantType = "grant_type" GrantTypeAuthCode = "authorization_code" GrantTypeRefreshToken = "refresh_token" Authorized = "1" )
View Source
const ( BasicPath = "/login/oauth" AuthorizePath = "/authorize" AccessTokenPath = "/access_token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(oauthServerController oauth.Controller, oauthAppController oauthapp.Controller, oauthHTMLLocation string, scopeService scope.Service) *API
func (*API) HandleAccessTokenReq ¶
func (*API) HandleAuthorizationGetReq ¶
func (*API) HandleAuthorizationReq ¶
func (*API) RegisterRoute ¶
type AuthorizationPageParams ¶
type ScopeBasic ¶
Click to show internal directories.
Click to hide internal directories.