Documentation
¶
Index ¶
- type AWSAuthenticate
- func (a *AWSAuthenticate) Forgot(ctx context.Context, orgData *am.Organization, details *authz.ResetDetails) error
- func (a *AWSAuthenticate) Init(config []byte) error
- func (a *AWSAuthenticate) Login(ctx context.Context, orgData *am.Organization, details *authz.LoginDetails) (map[string]string, error)
- func (a *AWSAuthenticate) Logout(ctx context.Context, orgData *am.Organization, userName string) error
- func (a *AWSAuthenticate) Refresh(ctx context.Context, details *authz.TokenDetails) (map[string]string, error)
- func (a *AWSAuthenticate) Reset(ctx context.Context, orgData *am.Organization, details *authz.ResetDetails) error
- func (a *AWSAuthenticate) SetNewPassword(ctx context.Context, orgData *am.Organization, details *authz.LoginDetails) (map[string]string, error)
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 (*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.
Click to show internal directories.
Click to hide internal directories.