wstrust

package
v0.0.0-...-a01d22e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SamlAssertionType

type SamlAssertionType int
const (
	SamlV1 SamlAssertionType = iota
	SamlV2
)

type SamlTokenInfo

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

func CreateSamlTokenInfo

func CreateSamlTokenInfo(assertionType SamlAssertionType, assertion string) *SamlTokenInfo

func (*SamlTokenInfo) GetAssertion

func (sti *SamlTokenInfo) GetAssertion() string

func (*SamlTokenInfo) GetAssertionType

func (sti *SamlTokenInfo) GetAssertionType() SamlAssertionType

type WsEndpointData

type WsEndpointData struct {
	Version      WsTrustEndpointVersion
	EndpointType WsEndpointType
}

type WsEndpointType

type WsEndpointType int
const (
	WsEndpointTypeUsernamePassword WsEndpointType = iota
	WsEndpointTypeWindowsTransport
)

type WsTrustEndpoint

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

func CreateWsTrustEndpoint

func CreateWsTrustEndpoint(endpointVersion WsTrustEndpointVersion, url string) WsTrustEndpoint

func (*WsTrustEndpoint) BuildTokenRequestMessageUsernamePassword

func (wte *WsTrustEndpoint) BuildTokenRequestMessageUsernamePassword(cloudAudienceURN string, username string, password string) (string, error)

func (*WsTrustEndpoint) BuildTokenRequestMessageWIA

func (wte *WsTrustEndpoint) BuildTokenRequestMessageWIA(cloudAudienceURN string) (string, error)

func (*WsTrustEndpoint) GetURL

func (wte *WsTrustEndpoint) GetURL() string

func (*WsTrustEndpoint) GetVersion

func (wte *WsTrustEndpoint) GetVersion() WsTrustEndpointVersion

type WsTrustEndpointVersion

type WsTrustEndpointVersion int
const (
	Trust2005 WsTrustEndpointVersion = iota
	Trust13
)

type WsTrustMexDocument

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

func CreateWsTrustMexDocument

func CreateWsTrustMexDocument(responseData string) (*WsTrustMexDocument, error)

func (*WsTrustMexDocument) GetWsTrustUsernamePasswordEndpoint

func (mexDoc *WsTrustMexDocument) GetWsTrustUsernamePasswordEndpoint() WsTrustEndpoint

type WsTrustResponse

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

func CreateWsTrustResponse

func CreateWsTrustResponse(responseData string) *WsTrustResponse

func (*WsTrustResponse) GetSAMLAssertion

func (wsTrustResponse *WsTrustResponse) GetSAMLAssertion(endpoint *WsTrustEndpoint) (*SamlTokenInfo, error)

Jump to

Keyboard shortcuts

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