authboss: alab.us/open-source-forks/authboss/oauth2 Index | Files

package oauth2

import "alab.us/open-source-forks/authboss/oauth2"

Index

Package Files

oauth2.go providers.go

func Facebook Uses

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 Uses

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.

type OAuth2 Uses

type OAuth2 struct {
    *authboss.Authboss
}

OAuth2 module

func (*OAuth2) Initialize Uses

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

Initialize module

func (*OAuth2) Routes Uses

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

Routes for module

func (*OAuth2) Storage Uses

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

Storage requirements

Package oauth2 imports 14 packages (graph). Updated 2020-08-04. Refresh now. Tools for package owners.