auth

package
v0.0.0-...-afeb488 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallbackHandler

func CallbackHandler(c *gin.Context)

CallbackHandler is a callback handler that Auth0 will call once it redirects to your app. oidc implements OpenID Connect client logic for the golang.org/x/oauth2 package.

func IsAuthenticated

func IsAuthenticated() gin.HandlerFunc

func LoginHandler

func LoginHandler(c *gin.Context)

func LogoutHandler

func LogoutHandler(c *gin.Context)

func UserHandler

func UserHandler(c *gin.Context)

Types

type Authenticator

type Authenticator struct {
	Provider *oidc.Provider
	Config   oauth2.Config
	Ctx      context.Context
}

func NewAuthenticator

func NewAuthenticator() (*Authenticator, error)

Jump to

Keyboard shortcuts

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