awsauthz

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSAuthenticate

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

func New

func New(env, region string, tokener token.Tokener) *AWSAuthenticate

func (*AWSAuthenticate) Forgot

func (a *AWSAuthenticate) Forgot(ctx context.Context, orgData *am.Organization, details *authz.ResetDetails) error

Forgot password flow

func (*AWSAuthenticate) Init

func (a *AWSAuthenticate) Init(config []byte) error

Init the aws cip service

func (*AWSAuthenticate) Login

func (a *AWSAuthenticate) Login(ctx context.Context, orgData *am.Organization, details *authz.LoginDetails) (map[string]string, error)

func (*AWSAuthenticate) Logout

func (a *AWSAuthenticate) Logout(ctx context.Context, orgData *am.Organization, userName string) error

func (*AWSAuthenticate) Refresh

func (a *AWSAuthenticate) Refresh(ctx context.Context, details *authz.TokenDetails) (map[string]string, error)

Refresh token flow when id token has expired and needs to be refreshed

func (*AWSAuthenticate) Reset

func (a *AWSAuthenticate) Reset(ctx context.Context, orgData *am.Organization, details *authz.ResetDetails) error

Reset password flow

func (*AWSAuthenticate) SetNewPassword

func (a *AWSAuthenticate) SetNewPassword(ctx context.Context, orgData *am.Organization, details *authz.LoginDetails) (map[string]string, error)

SetNewPassword for when a user first logs in and needs to set their new password. Instead of requiring us to send / expose the session & UID, we simply re-issue the flow but this time capture the challenge and provide the new password.

Jump to

Keyboard shortcuts

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