oauth2

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Facebook

func Facebook(ctx context.Context, cfg oauth2.Config, token *oauth2.Token) (authboss.Attributes, error)

Facebook is a callback appropriate for use with Facebook's OAuth2 configuration.

func Google

func Google(ctx context.Context, cfg oauth2.Config, token *oauth2.Token) (authboss.Attributes, error)

Google is a callback appropriate for use with Google's OAuth2 configuration.

Types

type OAuth2

type OAuth2 struct {
	*authboss.Authboss
}

OAuth2 module

func (*OAuth2) Initialize

func (o *OAuth2) Initialize(ab *authboss.Authboss) error

Initialize module

func (*OAuth2) Routes

func (o *OAuth2) Routes() authboss.RouteTable

Routes for module

func (*OAuth2) Storage

func (o *OAuth2) Storage() authboss.StorageOptions

Storage requirements

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL