Documentation
¶
Index ¶
- Constants
- func Register(options adapters.OAuth2ProviderOptions) (adapters.OAuth2Provider, error)
- type FacebookOAuth2Client
- func (c *FacebookOAuth2Client) AppendScope(scope string)
- func (c *FacebookOAuth2Client) Callback() controllers.Controller
- func (c *FacebookOAuth2Client) Login() controllers.Controller
- func (c *FacebookOAuth2Client) Logout() controllers.Controller
- func (c *FacebookOAuth2Client) Name() string
- func (c *FacebookOAuth2Client) RemoveScope(scope string)
- func (c *FacebookOAuth2Client) Scopes() []string
- func (c *FacebookOAuth2Client) SetErrorCallback(f func(*adapters.OAuth2CallbackResponse) error)
- func (c *FacebookOAuth2Client) SetErrorRedirectPath(path string)
- func (c *FacebookOAuth2Client) SetLoggedInCallback(f func(*adapters.OAuth2CallbackResponse) error)
- func (c *FacebookOAuth2Client) SetLoggedInRedirectPath(path string)
- func (c *FacebookOAuth2Client) SetLoggedOutCallback(f func(*adapters.OAuth2CallbackResponse) error)
- func (c *FacebookOAuth2Client) SetLoggedOutInRedirectPath(path string)
- func (c *FacebookOAuth2Client) ToggleErrorRedirect(value bool)
- func (c *FacebookOAuth2Client) ToggleSuccessRedirect(value bool)
Constants ¶
View Source
const ( FACEBOOK_OAUTH_PROFILE_API_URL = "https://graph.facebook.com/me" FACEBOOK_DEFAULT_CLIENT_NAME = "facebook" FACEBOOK_CALLBACK_ENDPOINT = "callback" )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(options adapters.OAuth2ProviderOptions) (adapters.OAuth2Provider, error)
Types ¶
type FacebookOAuth2Client ¶
type FacebookOAuth2Client struct { RedirectOnSuccess bool RedirectOnError bool LoggedInCallback func(*adapters.OAuth2CallbackResponse) error LoggedOutCallback func(*adapters.OAuth2CallbackResponse) error ErrorCallback func(*adapters.OAuth2CallbackResponse) error // contains filtered or unexported fields }
func New ¶
func New(clientId string, clientSecret string) *FacebookOAuth2Client
func (*FacebookOAuth2Client) AppendScope ¶
func (c *FacebookOAuth2Client) AppendScope(scope string)
func (*FacebookOAuth2Client) Callback ¶
func (c *FacebookOAuth2Client) Callback() controllers.Controller
func (*FacebookOAuth2Client) Login ¶
func (c *FacebookOAuth2Client) Login() controllers.Controller
func (*FacebookOAuth2Client) Logout ¶
func (c *FacebookOAuth2Client) Logout() controllers.Controller
func (*FacebookOAuth2Client) Name ¶
func (c *FacebookOAuth2Client) Name() string
func (*FacebookOAuth2Client) RemoveScope ¶
func (c *FacebookOAuth2Client) RemoveScope(scope string)
func (*FacebookOAuth2Client) Scopes ¶
func (c *FacebookOAuth2Client) Scopes() []string
func (*FacebookOAuth2Client) SetErrorCallback ¶
func (c *FacebookOAuth2Client) SetErrorCallback(f func(*adapters.OAuth2CallbackResponse) error)
func (*FacebookOAuth2Client) SetErrorRedirectPath ¶
func (c *FacebookOAuth2Client) SetErrorRedirectPath(path string)
func (*FacebookOAuth2Client) SetLoggedInCallback ¶
func (c *FacebookOAuth2Client) SetLoggedInCallback(f func(*adapters.OAuth2CallbackResponse) error)
func (*FacebookOAuth2Client) SetLoggedInRedirectPath ¶
func (c *FacebookOAuth2Client) SetLoggedInRedirectPath(path string)
func (*FacebookOAuth2Client) SetLoggedOutCallback ¶
func (c *FacebookOAuth2Client) SetLoggedOutCallback(f func(*adapters.OAuth2CallbackResponse) error)
func (*FacebookOAuth2Client) SetLoggedOutInRedirectPath ¶
func (c *FacebookOAuth2Client) SetLoggedOutInRedirectPath(path string)
func (*FacebookOAuth2Client) ToggleErrorRedirect ¶
func (c *FacebookOAuth2Client) ToggleErrorRedirect(value bool)
func (*FacebookOAuth2Client) ToggleSuccessRedirect ¶
func (c *FacebookOAuth2Client) ToggleSuccessRedirect(value bool)
Click to show internal directories.
Click to hide internal directories.