iam

package
v0.0.0-...-043af89 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(c *Client)

Debug option for the client

Types

type Assertion

type Assertion string

Assertion represents the SAML token

func (Assertion) ActorID

func (a Assertion) ActorID() string

ActorID returns the saml attribute "actorID" value

func (Assertion) SubjectID

func (a Assertion) SubjectID() string

SubjectID returns tje saml attribute "subjectID" value

type Client

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

Client is the sts client that will retrieve the saml assertion

func NewClient

func NewClient(stsURL, certFile, keyFile string, options ...Option) (*Client, error)

NewClient creates new sts client

func (*Client) GetAssertion

func (c *Client) GetAssertion(scopeURL string) (Assertion, error)

GetAssertion makes a request for a new saml assertion for specified scope

type Lifetime

type Lifetime struct {
	XMLName xml.Name `xml:"http://docs.oasis-open.org/ws-sx/ws-trust/200512 Lifetime"`

	Created customTime `xml:"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd Created"`
	Expires customTime `xml:"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd Expires"`
}

type Option

type Option func(*Client)

Option can be set to change the options of the client

Jump to

Keyboard shortcuts

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