auth

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(conf Config)

Types

type Challenge

type Challenge struct {
	ID   string `json:"id"`
	Type string `json:"type"`
}

type Config

type Config struct {
	Stage string
}

type SignInResponse

type SignInResponse struct {
	Data struct {
		Tokens    Tokens    `json:"tokens"`
		Challenge Challenge `json:"challenge"`
	} `json:"data"`
}

type Tokens

type Tokens struct {
	AccessToken   string `json:"accessToken"`
	IdentityToken string `json:"identityToken"`
	RefreshToken  string `json:"refreshToken"`
}

func SignIn

func SignIn(ctx context.Context, username, password string) (tokens Tokens, err error)

SignIn will sign in the user and if needed complete the change password challenge

Directories

Path Synopsis
Package secretsmanagerauth provides a package for authenticating with credentials stored in Secrets Manager.
Package secretsmanagerauth provides a package for authenticating with credentials stored in Secrets Manager.

Jump to

Keyboard shortcuts

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