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) 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 ¶
Click to show internal directories.
Click to hide internal directories.