wstrust

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package wstrust provides a client for communicating with a WSTrust (https://en.wikipedia.org/wiki/WS-Trust#:~:text=WS%2DTrust%20is%20a%20WS,in%20a%20secure%20message%20exchange.) for the purposes of extracting metadata from the service. This data can be used to acquire tokens using the accesstokens.Client.GetAccessTokenFromSamlGrant() call.

Index

Constants

View Source
const (
	SoapActionDefault = "http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// Comm provides the HTTP transport client.
	Comm xmlCaller
}

Client represents the REST calls to get tokens from token generator backends.

func (Client) Mex

func (c Client) Mex(ctx context.Context, federationMetadataURL string) (defs.MexDocument, error)

Mex provides metadata about a wstrust service.

func (Client) SAMLTokenInfo

func (c Client) SAMLTokenInfo(ctx context.Context, authParameters authority.AuthParams, cloudAudienceURN string, endpoint defs.Endpoint) (SamlTokenInfo, error)

SAMLTokenInfo provides SAML information that is used to generate a SAML token.

type SamlTokenInfo

type SamlTokenInfo struct {
	AssertionType string // Should be either constants SAMLV1Grant or SAMLV2Grant.
	Assertion     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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