controllers

package
v0.0.0-...-c397533 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeController

type AuthorizeController struct {
	beego.Controller
}

func (*AuthorizeController) Get

func (ac *AuthorizeController) Get()

func (*AuthorizeController) Post

func (ac *AuthorizeController) Post()

type AuthorizeRequest

type AuthorizeRequest struct {
	ResponseType string
	ClientID     string
	RedirectURI  string
	Scope        string
	State        string
}

AuthorizeRequest 验证请求

type LoginController

type LoginController struct {
	beego.Controller
}

func (*LoginController) Get

func (lc *LoginController) Get()

func (*LoginController) Post

func (lc *LoginController) Post()

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (c *MainController) Get()

type TokenController

type TokenController struct {
	beego.Controller
}

TokenController 令牌

func (*TokenController) Post

func (tc *TokenController) Post()

Post Post

type TokenRequest

type TokenRequest struct {
	GrantType    string `form:"grant_type"`
	Code         string `form:"code"`
	RedirectURI  string `form:"redirect_uri"`
	ClientID     string `form:"client_id"`
	ClientSecret string `form:"client_secret"`
}

TokenRequest 令牌请求参数

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int64  `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
	Scope        string `json:"scope"`
}

TokenResponse 令牌响应参数

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL