- Home
- API reference
- API documentation (JSON/XML)
- Tasks
- User tasks
User verification create
Function
The UserVerificationCreate task generates an authentication token. This token can be used in the second step for single sign-on.
Description
Route: POST {baseUrl}/user/{username}/{context}/verification
{
"ip": "2.2.2.2",
"userAgent": "PostmanRuntime/7.26.8"
}{
"status" : {
"code" : "S1321011",
"text" : "S1321011",
"type" : "SUCCESS"
},
"object" : {
"type" : "User",
"value" : "autodns_normal_9_0, 4"
}
}
Task code: 1321011
Uses auth session objekt
<request>
<auth>
<user>customer</user>
<password>password</password>
<context>4</context>
</auth>
<task>
<code>1321011</code>
<auth_session>
<user>
<user>customer22</user>
<context>4</context>
</user>
<ip>2.2.2.2</ip>
<user_agent>PostmanRuntime/7.26.8</user_agent>
</auth_session>
</task>
</request><response>
<result>
<data>
<auth_session>
<user>
<user>customer</user>
<context>4</context>
</user>
<hash>4272e2c8-aec6-4d93-97ce-7f226e5c1146</hash>
<ip>2.2.2.2</ip>
<user_agent>PostmanRuntime/7.26.8</user_agent>
<timeout>10</timeout>
<valid_until>2021-06-18 17:14:54</valid_until>
<language>den</language>
<owner>
<user>customer</user>
<context>4</context>
</owner>
<updater>
<user>customer</user>
<context>4</context>
</updater>
</auth_session>
</data>
<status>
<code>S1321011</code>
<text>The user verification token was created successfully.</text>
<type>success</type>
<object>
<type>user</type>
<value>customer2, 4</value>
</object>
</status>
</result>
<stid>20210618-app-123</stid>
</response>