Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthController ¶
type AuthController struct {
Service *service.AuthService
// contains filtered or unexported fields
}
func (*AuthController) Authorize ¶
func (c *AuthController) Authorize(w http.ResponseWriter, r *http.Request)
/authorize?provider=google&user_id=alice[&scheme=myapp&platform=desktop&challenge=xyz&cacheMode=none]
func (*AuthController) Callback ¶
func (c *AuthController) Callback(w http.ResponseWriter, r *http.Request)
/callback?state=provider:user_id:platform:scheme:cacheMode&code=xxx
func (*AuthController) GetToken ¶
func (c *AuthController) GetToken(w http.ResponseWriter, r *http.Request)
/get_token?provider=google[&user_id=xxx&challenge=yyy]
Click to show internal directories.
Click to hide internal directories.