Returns a set of temporary security credentials for users who have been authenticated in a mobile or web application with a web
identity provider, such as Login with Amazon, Facebook, or Google.
The temporary security credentials consist of an access key ID, a secret access key, and a security token. Applications can
use these temporary security credentials to sign calls to AWS service APIs. The credentials are valid for the duration that you specified
when calling
The temporary security credentials that are returned from the
Before your application can call
Inheritance Hierarchy
Amazon.Runtime.AmazonWebServiceRequest
Amazon.SecurityToken.Model.AssumeRoleWithWebIdentityRequest
Namespace: Amazon.SecurityToken.Model
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public class AssumeRoleWithWebIdentityRequest : AmazonWebServiceRequest IRequestEvents
The AssumeRoleWithWebIdentityRequest type exposes the following members
Constructors
Name | Description | |
---|---|---|
![]() |
AssumeRoleWithWebIdentityRequest() |
Properties
Name | Description | |
---|---|---|
![]() |
DurationSeconds |
The duration, in seconds, of the role session. The value can range from 900 seconds (15 minutes) to 3600 seconds (1 hour). By default, the
value is set to 3600 seconds.
Constraints: |
![]() |
Policy |
A supplemental policy that is associated with the temporary security credentials from the Constraints: |
![]() |
ProviderId |
Specify this value only for OAuth access tokens. Do not specify this value for OpenID Connect ID tokens, such as Constraints: |
![]() |
RoleArn |
The Amazon Resource Name (ARN) of the role that the caller is assuming.
Constraints: |
![]() |
RoleSessionName |
An identifier for the assumed role session. Typically, you pass the name or identifier that is associated with the user who is using your
application. That way, the temporary security credentials that your application will use are associated with that user. This session name is
included as part of the ARN and assumed role ID in the Constraints: |
![]() |
WebIdentityToken |
The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity provider. Your application must get this token by
authenticating the user who is using your application with a web identity provider before the application makes an
Constraints: |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8
.NET for Windows Phone:
Supported in: Window Phone 8