auth

package
v0.0.0-...-c950848 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(r chi.Router, db *pg.DB) chi.Router

Routes consists of the route method declarations for Auth.

Types

type Check

type Check struct {
	Audience     string
	ClientId     string
	ClientSecret string
	Email        string
}

type Handler

type Handler core.Handler

Handler consists of the DB connection and Routes

func (*Handler) Check

func (cw *Handler) Check(w http.ResponseWriter, r *http.Request)

Check handler – Called from Auth0 User Login Signup rule. Compares hash against client secret.

func (*Handler) Login

func (cw *Handler) Login(w http.ResponseWriter, r *http.Request)

Login handler to obtain jwt token.

func (*Handler) Logout

func (cw *Handler) Logout(w http.ResponseWriter, r *http.Request)

Logout handler – Unfinished

Jump to

Keyboard shortcuts

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