auth

package
v0.0.0-...-e048e19 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(config config.Config, loginMessages ...string) error

func AuthorizeDeviceAndUser

func AuthorizeDeviceAndUser(config config.Config) error

Types

type AWSCognitoJWT

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

func GetAuthenticatedToken

func GetAuthenticatedToken(config config.Config, forceLogin bool, loginMessages ...string) (*AWSCognitoJWT, error)

func NewAWSCognitoJWT

func NewAWSCognitoJWT(config config.Config) (*AWSCognitoJWT, error)

func (*AWSCognitoJWT) UserID

func (awsJWT *AWSCognitoJWT) UserID() string

func (*AWSCognitoJWT) Username

func (awsJWT *AWSCognitoJWT) Username() string

Jump to

Keyboard shortcuts

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