Documentation ¶
Index ¶
- type AuthEnv
- type AuthHandlers
- func (h *AuthHandlers) ChangePwd(w http.ResponseWriter, req *http.Request)
- func (h *AuthHandlers) Forgot(w http.ResponseWriter, req *http.Request)
- func (h *AuthHandlers) ForgotConfirm(w http.ResponseWriter, req *http.Request)
- func (h *AuthHandlers) Login(w http.ResponseWriter, req *http.Request)
- func (h *AuthHandlers) Refresh(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.