Documentation ¶
Index ¶
- type Auther
- func (a *Auther) BuildJWT(o *JWTInfo) (string, error)
- func (a *Auther) Decrypt(enc64 string) string
- func (a *Auther) Digest(plain string) string
- func (a *Auther) Encrypt(plain string) string
- func (a *Auther) GetGitHubAuthURL() string
- func (a *Auther) GetGitHubOAuthInfo(resState string, code string) (*OAuthInfo, error)
- func (a *Auther) GetGoogleAuthURL() string
- func (a *Auther) GetGoogleOAuthInfo(resState string, code string) (*OAuthInfo, error)
- func (a *Auther) GetTwitterAuthURL() (*oauth.Credentials, string, error)
- func (a *Auther) GetTwitterOAuthInfo(tmpCred *oauth.Credentials, tmpSecret string) (*OAuthInfo, error)
- type JWTInfo
- type OAuthInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auther ¶
type Auther struct {
// contains filtered or unexported fields
}
Auther enc/dec sensitive data
func (*Auther) GetGitHubAuthURL ¶
GetGitHubAuthURL returns auth url
func (*Auther) GetGitHubOAuthInfo ¶
GetGitHubOAuthInfo returns user info
func (*Auther) GetGoogleAuthURL ¶
GetGoogleAuthURL returns auth url
func (*Auther) GetGoogleOAuthInfo ¶
GetGoogleOAuthInfo returns user info
func (*Auther) GetTwitterAuthURL ¶
func (a *Auther) GetTwitterAuthURL() (*oauth.Credentials, string, error)
GetTwitterAuthURL returns auth url
func (*Auther) GetTwitterOAuthInfo ¶
func (a *Auther) GetTwitterOAuthInfo(tmpCred *oauth.Credentials, tmpSecret string) (*OAuthInfo, error)
GetTwitterOAuthInfo returns user info
Click to show internal directories.
Click to hide internal directories.