S360 Services
Home
Home
Azure DevOps Repository
  1. SSO
  • Component Diagram
  • S360 Providers
    • BackOffice Workspace
      • Application
        • Submit Application
        • Application Status
      • Service Provisioning
        • Service Provisioning Request
        • Service Provisioning Status
      • Payment
        • Pricing Request
        • Payment Confirmation
      • References
    • IID Authorization
      • Get Context
      • Create Child Session
      • Get Child Session
      • Refresh Child Session
      • Validate Child Session
      • Logout Child Session
      • Add messages
    • MDM
      • License
        • QueryLicenses
  • S360
    • BackOffice
      • Application
        • Application Decision
      • Service Provisioning
        • Service Provisioning
    • IID Portal
      • Read This First
      • Application Status
      • Services
        • Get My Services
        • Get My Service Details
        • Start My Application
      • Applications
        • Get My Applications
        • Get My Application Details
        • Complete My Application
        • View My Application
      • Inventory
        • Get My Inventories
        • Get My Inventory Details
      • Payment
        • CompletePayment
        • GetPaymentDetails
        • ConfirmPayment
        • GetDuePaymentDetails
        • GetPastPaymentDetails
        • GetMyDuePayments
        • GetMyPastPayments
        • GetMyPaymentDetails
        • GetMyPayments
      • Document
        • Retrieve Document
    • Application Workspace
      • Read This First
      • SSO
        • Authenticate
          POST
        • Refresh Session
          POST
      • Application
        • GetContext App
        • GetContext User
        • Submit My Application
        • Notify Application Status
      • Document
        • Upload Document
        • Retrieve Document
      • Proxy
        • Get Reference Data from Entity
      • DesignTime
        • Upload Application Schema
    • Rules Engines
      • Payment
  1. SSO

Refresh Session

Integrating
POST
https://apiqa.detsandbox.com/idp/sso/v1/refresh
Last modified:2024-09-26 10:49:59
OperationId:RefreshSession

Overview#

The Application Workspace may call RefreshSession API to force the session to be refreshed; hence, IDP will issue a new JWT.

Sequence Diagram#

Mermaid

Exception Handling#

Below is the exception handling scenario if exception occurred (HTTP 401 - Unauthorized)
Error CodeDescriptionException Handling
ESB-IDP-E0003Session ID and/or sessionToken is invalidBack to anonymous or request user to sign in
ESB-IDP-E0004User logged outBack to anonymous or request user to sign in

Request

Header Params

Body Params application/json

Example
{
    "sessionToken": "{{sessionToken}}",
    "sessionId": "{{sessionId}}"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apiqa.detsandbox.com/idp/sso/v1/refresh' \
--header 'X-Request-Id: {% faker datatype.uuid %}' \
--header 'api_key: 5k5a9rnknaj87kthytganapc' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sessionToken": "",
    "sessionId": "{{sessionId}}"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": 200,
    "esbUUID": "51368f50-4a67-42d4-803c-ddc80c0be491",
    "desc": {
        "en": "Success",
        "ar": "نجاح",
        "code": "ESB-IDP-S0000"
    },
    "data": {
        "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJJSUQtSURQU2VydmljZXMiLCJzdWIiOiJjaGF0Ym90IiwiYXVkIjoiU1NPIiwiY29udGV4dCI6eyJ1c2VyIjp7InNlbGZQcm9maWxlIjpbeyJwcm9maWxlSWQiOjYwMTgwNCwibmFtZUVuIjoiREFXT09EIEFMSSBBQkRVTExBIEFMSSBBSE1BRCIsIm5hbWVBciI6Itiv2KfZiNivINi52YTZiSDYudio2K_Yp9mE2YTZhyDYudmE2Ykg2KfYrdmF2K8iLCJtb2JpbGVObyI6IjA1ODU5eHh4eCIsImVtYWlsIjoiam9obkBpY2xvdWQuY29tIiwidHlwZSI6IklORElWSURVQUwiLCJpc0FjdGl2ZSI6dHJ1ZX1dfSwiYXBwIjp7ImlpZFBhcmFtcyI6eyJ0ZXN0Ijp7ImEiOjAsImIiOjB9fX0sInNzbyI6eyJzZXNzaW9uSWQiOiJjOWUxMmMxMy01ODllLTRmM2EtOTI3My1lOTMwMGZkYTBlZjEiLCJleHRlcm5hbFN5c3RlbUlkIjoiY2hhdGJvdCIsImF1dGhvcml0eVR5cGUiOiJTRUxGIiwic2Vzc2lvblRva2VuRW5jcnlwdGVkIjoidi95VGxScUc3dmpGYmV3anpaTmhLMllsSHRQd2liWUxKTWpPWTZnSGYranJYUklKZnc2cmZRRHdURTArM0VlUiJ9fX0.92Um5tC4JTm0_cuvcpf6YGjcwa_CrG4IpsGM5GUCPRQ"
    }
}
🟠403Forbidden
🟠401Unauthorized
🔴500Server Error
🔴504APIMGatewayTimeout
🟠403APIMDeveloperInactive
🟠404FlogoException
🔴500Unknown Error
🔴503APIMServiceUnavailable
Modified at 2024-09-26 10:49:59
Previous
Authenticate
Next
GetContext App
Built with