AWS SDK Version 3 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.

Constructs an instance of StoredProfileFederatedCredentials. After construction call one of the Authenticate methods to authenticate the user/process and obtain temporary AWS credentials.

For users who are domain joined (the role profile does not contain user identity information) the temporary credentials will be refreshed automatically as needed. Non domain-joined users (those with user identity data in the profile) are required to re-authenticate when credential refresh is required. An exception is thrown when attempt is made to refresh credentials in this scenario. The consuming code of this class should catch the exception and prompt the user for credentials, then call Authenticate to re-initialize with a new set of temporary AWS credentials.

Namespace: Amazon.Runtime
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public StoredProfileFederatedCredentials(
         String profileName,
         String profilesLocation
)
Parameters
profileName
Type: System.String

The name of the profile holding the necessary role data to enable authentication and credential generation.

profilesLocation
Type: System.String

Reserved for future use.

Remarks

The ini-format credentials file is not currently supported for SAML role profiles.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5