Get a session access token, which can in turn be used to sign a user's session using /api/session/redeem-token. The return must be used within 15 minutes.
This procedure is designed to work alongside the Authenticate visitors through API option in the site's security settings. When this option is selected, all visitors (not logged-in users) must be redirected to the site through this procedure in order to gain access to the site's content. This allows the developer full control of who is allowed in, and it is usually used for intranet sites or for sites behind a paywall.
A session times out when it hasn't been used for 20 minutes. After this, the user must have his or her session re-signed.
If you want to force a user to be logged out after having be signed in through the signed-session mechanism, redirect the client to /logout on the site:
http://video.example.com/logout?return_url=http%3A%2F%2Fwww.example.com%2F
| Parameter | Description |
|---|---|
| return_url | The URL the user is redirected to after the session has been signed. |
The minimum required permission level is:
super
<response status="ok" permission_level="super"
message="The session access token is ready to use" cached="0">
<access_token>sdkjhflsd6f87aysdukgs87dfgkjsdfgkjshdkfjghskjldfg978sdhkgj</access_token>
<return_url>/</return_url>
</response>
{
"status": "ok",
"message":"The session access token is ready to use",
"permission_level":"admin",
"cached":"0",
"sessiontoken":{
"access_token": "sdkjhflsd6f87aysdukgs87dfgkjsdfgkjshdkfjghskjldfg978sdhkgj",
"return_url": "/"
},
"p": "1",
"size": "1",
"site": { ... },
"endpoint": "/api/session/get-token"
}
Me and my colleagues at 23 believe in 100% Human support. Yup, no autoresponders or 3 days response policy. The easiest way to get a feeling of our product is to schedule a demo with me below. If you want to reach me via phone, you can simply call me on +45 31-23-45-81 or Skype me via kikecuellar. Have a great day!