AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Contains the parsed SAML response data following successful user authentication against a federated endpoint. We only parse out the data we need to support generation of temporary AWS credentials.

Inheritance Hierarchy

System.Object
  Amazon.SecurityToken.SAML.SAMLAssertion

Namespace: Amazon.SecurityToken.SAML
Assembly: AWSSDK.SecurityToken.dll
Version: 3.x.y.z

Syntax

C#
public class SAMLAssertion

The SAMLAssertion type exposes the following members

Properties

NameTypeDescription
Public Property AssertionDocument System.String

The full SAML assertion parsed from the identity provider's response.

Public Property RoleSet System.Collections.Generic.IDictionary<System.String, System.String>

The collection of roles available to the authenticated user. he parsed friendly role name is used to key the entries.

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method GetRoleCredentials(IAmazonSecurityTokenService, string, TimeSpan)

Retrieves a set of temporary credentials for the specified role, valid for the specified timespan. If the SAML authentication data yield more than one role, a valid role name must be specified.

Public Method GetRoleCredentialsAsync(IAmazonSecurityTokenService, string, TimeSpan)

Retrieves a set of temporary credentials for the specified role, valid for the specified timespan. If the SAML authentication data yield more than one role, a valid role name must be specified.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer