saml

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseResponse

func ParseResponse(saml string) (samlResponse, error)

func SerialiseLoginRole added in v1.1.0

func SerialiseLoginRole(role LoginRole) string

Types

type LoginData

type LoginData struct {
	Roles     []LoginRole
	Assertion string
}

func CreateLoginData

func CreateLoginData(response samlResponse, payload string) LoginData

func (LoginData) GetLoginRole

func (login LoginData) GetLoginRole(roleArn string) (LoginRole, error)

type LoginRole

type LoginRole struct {
	RoleArn      string
	PrincipalArn string
}

func CreateLoginRole added in v1.1.0

func CreateLoginRole(roleData string) (LoginRole, bool)

Jump to

Keyboard shortcuts

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