Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type Owner
- func (o *Owner) AuthCodeDecision(r *http.Request, clientId string) oguth.Client
- func (o *Owner) AuthCodeMissing(w http.ResponseWriter, r *http.Request)
- func (o *Owner) ExistClientId(id string) bool
- func (o *Owner) GetClientWithPasswordGrant(username, password string) oguth.Client
- func (o *Owner) GetRedirectUri(clientId string) string
Constants ¶
View Source
const ( LOGIN_URL = "http://localhost:1919/login" REDIRECT_URL = "http://localhost:1919/redirect" AUTH_URL = "http://localhost:1919/authorize" TOKEN_URL = "http://localhost:1919/token" TEST_URL = "http://localhost:1919/nickname" CLIENT_URL = "http://localhost:1919/client" USERNAME = "aoisensi" PASSWORD = "pAss30rD" NICKNAME = "I♥GO" CLIENT_ID = "cLiEnTiD" CLIENT_SECRET = "cLiEnTsEcReT" )
Variables ¶
View Source
var ( OConfig = oauth2.Config{ Endpoint: oauth2.Endpoint{ AuthURL: AUTH_URL, TokenURL: TOKEN_URL, }, } )
View Source
var Token *oauth2.Token
View Source
var (
User = &Client{Nickname: NICKNAME}
)
Functions ¶
This section is empty.
Types ¶
type Owner ¶
type Owner struct {
oguth.ResourceOwner
}
func (*Owner) AuthCodeDecision ¶
func (*Owner) AuthCodeMissing ¶
func (o *Owner) AuthCodeMissing(w http.ResponseWriter, r *http.Request)
func (*Owner) ExistClientId ¶
func (*Owner) GetClientWithPasswordGrant ¶
func (*Owner) GetRedirectUri ¶
Click to show internal directories.
Click to hide internal directories.