mfa

package
v0.0.0-...-8e8406b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerIdentityToSerial

func CallerIdentityToSerial(i *string) (string, error)

CallerIdentityToSerial converts a caller identity ARN to a MFA serial

func SerialToName

func SerialToName(i *string) (string, error)

SerialToName converts a MFA serial to a source name

Types

type MFA

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

MFA implements AWS virtual MFA devices as target

func New

func New(sess *session.Session, s source.Source) (*MFA, error)

New initializes a AWS virtual MFA device as target

func (*MFA) Add

func (m *MFA) Add(username string) (*string, []byte, error)

Add adds virtual MFA to the source and associates it with the given IAM username and returns MFA serial and TOTP secret

func (*MFA) Delete

func (m *MFA) Delete(username string) error

Delete removes a virtual MFA from the source including it's association with the given IAM username

Jump to

Keyboard shortcuts

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