AssumeRoleWithCustomToken
The Buckit Security Token Service (STS) AssumeRoleWithCustomToken API endpoint generates a token for use with the Buckit External Identity Management Plugin.
Request Endpoint
The AssumeRoleWithCustomToken endpoint has the following form:
POST https://buckit.example.net?Action=AssumeRoleWithCustomToken[&ARGS]
The following example uses all supported arguments.
Replace the buckit.example.net hostname with the appropriate URL for your Buckit cluster:
POST https://buckit.example.net?Action=AssumeRoleWithCustomToken
&Token=TOKEN
&Version=2011-06-15
&DurationSeconds=86000
&RoleArn="external-auth-provider"
Request Query Parameters
This endpoint supports the following query parameters:
Parameter |
Type |
Description |
|---|---|---|
|
string |
Required Specify the JSON Token to present to the external identity manager. Buckit expects the identity manager to parse the token and determine whether to authenticate client requests using that token. |
|
string |
Required Specify |
|
string |
Required Specify the ARN for the Identity Manager Plugin configuration to associate with this STS request. See Note that Buckit automatically prepends |
|
integer |
Optional Specify the number of seconds after which the temporary credentials expire.
Defaults to
|
Response Elements
Buckit returns an AssumeRoleWithCustomTokenResult object, where the AssumedRoleUser.Credentials object contains the temporary credentials generated by Buckit:
AccessKeyId- The access key applications use for authentication.SecretKeyId- The secret key applications use for authentication.Expiration- The RFC3339 date and time after which the credentials expire.SessionToken- The session token applications use for authentication. Some SDKs may require this field when using temporary credentials.
The following example is similar to the response returned by the Buckit STS
AssumeRoleWithCustomToken endpoint:
<?xml version="1.0" encoding="UTF-8"?>
<AssumeRoleWithCustomTokenResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<AssumeRoleWithCustomTokenResult>
<Credentials>
<AccessKeyId>ACCESS_KEY</AccessKeyId>
<SecretAccessKey>SECRET_KEY</SecretAccessKey>
<Expiration>YYYY-MM-DDTHH:MM:SSZ</Expiration>
<SessionToken>TOKEN</SessionToken>
</Credentials>
<AssumedUser>custom:Alice</AssumedUser>
</AssumeRoleWithCustomTokenResult>
<ResponseMetadata>
<RequestId>UNIQUE_ID</RequestId>
</ResponseMetadata>
</AssumeRoleWithCustomTokenResponse>
Error Elements
The XML error response for this API endpoint is similar to the AWS AssumeRoleWithWebIdentity response.