Skip to main content

Identity Provider Session Extending API

You're reading Identity & Access Management 7.1.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release
info

To access this API, use the following endpoint URL.

https://<IS_HOST>:<IS_PORT>/t/<TENANT_DOMAIN>/identity/extend-session

This API can be used to extend the user's session at the identity provider. To identify the session that needs to be extended, this API requires one of the following.

  1. Session identifier as a request parameter: This can be obtained from the ID token.
  2. Session identifier cookie: This is the commonAuthId cookie.
info

Currently, the session identifier value can only be obtained via OIDC flows that have sessions involved.

Extracting the session identifier value​

If the above config has been enabled, the session identifier can be extracted from the ID token. To do this, decode the ID token and read the value of the claim isk, which is the identifier of the session.

Supported requests​

Sending session identifier as a request parameter​
curl --location --request GET 'https://<IS_HOST>:<IS_PORT>/t/<TENANT_DOMAIN>/identity/extend-session?idpSessionKey=<SESSION_IDENTIFIER>'

Replace the <SESSION_IDENTIFIER> with the isk value obtained from the ID token. This method is ideal in cases where the use of third party cookies has been blocked.

curl --location --request GET 'https://<IS_HOST>:<IS_PORT>/t/<TENANT_DOMAIN>/identity/extend-session' \
--header 'Cookie: commonAuthId=<COMMON_AUTH_ID_COOKIE>'

In this case, replace the <COMMON_AUTH_ID_COOKIE> with the commonAuthId cookie value.

API responses​

If session extension has been successful, a 200 OK response will be returned.

If session extension has failed, the response could be one of the following.

Response status codeError codeDescription
500ISE-65001Unexpected server error
400ISE-60001Invalid request
400ISE-60002Session Key param value invalid
400ISE-60003Session cookie invalid
400ISE-60004Session not available/already expired

Was this page helpful?