facebookauth

package
Version: v0.0.0-...-f578de9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT, MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const FieldName = "externalauthdriver-facebook"
View Source
const GenderFemale = "female"
View Source
const GenderMale = "male"
View Source
const StateLength = 128

Variables

This section is empty.

Functions

This section is empty.

Types

type OauthAuthConfig

type OauthAuthConfig struct {
	*facebook.App
	Scope string
}

func (*OauthAuthConfig) Create

func (c *OauthAuthConfig) Create() auth.Driver

type OauthAuthDriver

type OauthAuthDriver struct {
	// contains filtered or unexported fields
}

func NewOauthDriver

func NewOauthDriver(c *OauthAuthConfig) *OauthAuthDriver

func (*OauthAuthDriver) AuthRequest

func (d *OauthAuthDriver) AuthRequest(provider *auth.Provider, r *http.Request) (*auth.Result, error)

func (*OauthAuthDriver) ExternalLogin

func (d *OauthAuthDriver) ExternalLogin(provider *auth.Provider, w http.ResponseWriter, r *http.Request)

type StateSession

type StateSession struct {
	State string
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL