SecurityTokenExchangeCredentials()

This API call is used to create a new SecurityToken by exchanging a user’s credentials.

This API is used to create a SecurityToken for a user recently created with AccountUserCreate() or UserCreate().

API URL:

[BaseURL]/SecurityToken/SecurityTokenExchange[?duration={Duration}]

Request Method:

POST

Request Parameters:

Request Format

XML type:

Required information:

Optional information:

Response Format

Status Code:

Headers:

Errors

Example

Create a new SecurityToken by exchanging user credentials

The following example will create a new SecurityToken by exchanging user credentials.

Sample Request:

POST /rest/2015/02/SecurityToken/SecurityTokenExchange HTTP/1.1
Host: api.uvvu.com
Content-type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Credentials xmlns="http://www.decellc.org/schema/2015/03/coordinator">
    <Username>test_-_cl-6fd3bf83-5412-4fe9-856f-36e1c72e4ca0</Username>
    <Password>P4SsWo.Rd_super12.Long</Password>
</Credentials>

Sample Response:

HTTP/1.1 201
Date: [Date]
Location: https://api.uvvu.com/rest/2015/02/SecurityToken/Assertion/_1914d5f8-5fce-4436-9dc1-803adea311d8
X-transaction-info: [TransactionInfo]

See Also