auth0

package
v0.0.0-...-0ac0b20 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth0Provider

func NewAuth0Provider(config providers.OAuth2Config) providers.OAuth2Provider

NewAuth0Provider creates a new Auth0 identity provider with a given config

Types

type Provider

type Provider struct {
	providers.OAuth2Provider
	// contains filtered or unexported fields
}

Auth0Provider represents an Auth0 instance

func (Provider) FetchUser

func (provider Provider) FetchUser(r *http.Request) (providers.UserInfo, error)

FetchUser fetches user info from Auth0

func (Provider) GetLoginURL

func (provider Provider) GetLoginURL(callbackURL string, state string) string

GetLoginURL returns OAuth 2 login endpoint used to redirect users

Jump to

Keyboard shortcuts

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