auth

package
v0.0.0-...-21df278 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthEnv

type AuthEnv struct {
	SystemOrgID  int
	SystemUserID int
	Env          string
	Region       string
}

type AuthHandlers

type AuthHandlers struct {
	// contains filtered or unexported fields
}

func New

func New(orgClient am.OrganizationService, authenticator authz.Authenticator, tokener token.Tokener, secureCookie *cookie.SecureCookie, authEnv *AuthEnv) *AuthHandlers

func (*AuthHandlers) ChangePwd

func (h *AuthHandlers) ChangePwd(w http.ResponseWriter, req *http.Request)

ChangePwd allows a user to change their password provided the current password works.

func (*AuthHandlers) Forgot

func (h *AuthHandlers) Forgot(w http.ResponseWriter, req *http.Request)

Forgot password flow sending email to user with verification code

func (*AuthHandlers) ForgotConfirm

func (h *AuthHandlers) ForgotConfirm(w http.ResponseWriter, req *http.Request)

ForgotConfirm to allow user who successfully retrieved verification code to set a new password

func (*AuthHandlers) Login

func (h *AuthHandlers) Login(w http.ResponseWriter, req *http.Request)

Login to the application, returning access/refresh tokens

func (*AuthHandlers) Refresh

func (h *AuthHandlers) Refresh(w http.ResponseWriter, req *http.Request)

Refresh user access tokens

Jump to

Keyboard shortcuts

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