Skip to content

Application Session

The Sessions API allows you to retrieve and manage the session configurations of your applications.

Retrieve the application session configuration

Request

Retrieves a session configuration for an application

Path
applicationIdstring, (uuid)required

Identifier of the application

curl -i -X GET \
  'https://oag.domain.tld/api/v2/apps/{applicationId}/session'

Responses

Success

Bodyapplication/json
authstring

Authentication type

Enum:"HEADER""NOAUTH""IWA""EBS"
browserSessionExpirationboolean

Indicates whether app sessions expire when the browser is closed. If browserSessionExpiration is true, the app session expires when the browser is closed.

deepLinkingboolean

Indicates whether your application dynamically redirects browsers to application URIs after sign-in. If deepLinking is false, the browser redirects to the post sign-in URL after sign-in.

enforceDeepLinkingDomainboolean

Indicates whether your application only allows deep links that share the public domain name. If a deep link domain doesn't match the public domain name, Access Gateway only uses the post login URL.

idleSessionboolean

Indicates whether app sessions can expire after a certain amount of idle time. If idleSession is true, the session expires after a period of inactivity, determined by the idleSessionTimeout value.

idleSessionTimeoutinteger, >= 60

The amount of idle time, in seconds, before an app session expires. This value is ignored if idleSession is false. The maximum value for this field is determined by the maxSessionTimeout value. The value of idleSessionTimeout must be less than or equal to maxSessionTimeout.

Default:3600
maxSessionboolean

Indicates whether app sessions can expire after a certain amount of time, regardless of activity. If maxSession is true, the session expires after a period of time, determined by the maxSessionTimeout value.

maxSessionTimeoutinteger

The amount of time, in seconds, before an app session expires, regardless of activity. This value is ignored if maxSession is false. The minimum value for this field is determined by the idleSessionTimeout value. The value of maxSessionTimeout must be greater than or equal to idleSessionTimeout. Setting maxSessionTimeout to 0 means that the app session never expires which is similar to setting maxSession to false.

Default:28800
Response
{ "auth": "HEADER", "enforceDeepLinkingDomain": false, "deepLinking": true, "idleSession": true, "idleSessionTimeout": 3600, "maxSession": true, "maxSessionTimeout": 28800, "browserSessionExpiration": false }