login

package
v0.0.0-...-90cde2e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface {
	ChooseDeviceIndex(devices []samlassertion.GenerateResponseFactorDevice) (int, error)
	InputMFAToken() (string, error)
}

type Login

type Login struct {
	SAMLAssertion samlassertioniface.SAMLAssertionAPI
	STS           stsiface.STSAPI
	Params        *Parameters
}

Login represents login

func New

func New(config *onelogin.Config, params *Parameters) *Login

New creates a Login instance

func (*Login) Login

func (l *Login) Login(logic Event) (*sts.Credentials, error)

type Parameters

type Parameters struct {
	UsernameOrEmail string
	Password        string
	AppID           string
	Subdomain       string
	PrincipalArn    string
	RoleArn         string
	DurationSeconds int64
}

Parameters represents login parameters

Jump to

Keyboard shortcuts

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