auth

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 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)

func GetBaseURL added in v1.10.2

func GetBaseURL() (string, error)

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