Documentation
¶
Index ¶
Constants ¶
View Source
const ProviderName = "google"
ProviderName identifica a este proveedor en las rutas y en el almacen de estado. Un consumidor lo usa con auth.PathOAuthStart / PathOAuthCallback.
Variables ¶
This section is empty.
Functions ¶
func AuthCodeURLHelper ¶
func AuthCodeURLHelper(cfg auth.OAuthConfig, state string) string
func ExchangeCodeHelper ¶
func ExchangeCodeHelper(cfg auth.OAuthConfig, code string) (auth.OAuthToken, error)
func QueryEscapeHelper ¶
Types ¶
type GoogleProvider ¶
func (*GoogleProvider) AuthCodeURL ¶
func (p *GoogleProvider) AuthCodeURL(state string) string
func (*GoogleProvider) ExchangeCode ¶
func (p *GoogleProvider) ExchangeCode(code string) (auth.OAuthToken, error)
func (*GoogleProvider) GetUserInfo ¶
func (p *GoogleProvider) GetUserInfo(token auth.OAuthToken) (auth.OAuthUserInfo, error)
func (*GoogleProvider) Name ¶
func (p *GoogleProvider) Name() string
Click to show internal directories.
Click to hide internal directories.