S360 Services
Home
Home
Azure DevOps Repository
  1. Application
  • 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
        • Refresh Session
      • Application
        • GetContext App
          GET
        • GetContext User
          GET
        • Submit My Application
          POST
        • Notify Application Status
          PUT
      • Document
        • Upload Document
        • Retrieve Document
      • Proxy
        • Get Reference Data from Entity
      • DesignTime
        • Upload Application Schema
    • Rules Engines
      • Payment
  1. Application

GetContext App

Developing
GET
https://apiqa.detsandbox.com/s360/app/applications/v1/context/{type}
Last modified:2024-10-02 05:01:44
OperationId:GetContext

Overview#

Get the context of the session. It is to get the user (encrypted) or app context (plain).
If the response is encrypted, it shall be flagged "encrypted".
  "desc": {
    "en": "Success",
    "ar": "نجاح",
    "code": "encrypted"
  }
The consumer shall use algorithm mentioned in the "Sample Key" section to decrypt.
💡
This is a protected resource. The request shall embed the Bearer in the Authorization header.

Flow - GetContextApp#

lucid

Exception Handling#

Below is the exception handling scenario if exception occurred (HTTP 401 - Unauthorized)
Error CodeDescriptionException Handling
ESB-IDP-E0001JWT is tamperedAuthenticate to IDP to get the new JWT
ESB-IDP-E0002Session or JWT is expiredRefreshSession to IDP to refresh the session and get the new JWT
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
ESB-IDP-E0005Context not found or invalidBack to IID Portal

Sample Key#

Use this tool to descrypt the context with following secretKey.
This is sample DET-IDP secretKey
Algorithm
{
  "alg": "dir",
  "enc": "A128GCM"
}

Request

Path Params

Query Params

Header Params

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 -g --request GET 'https://apiqa.detsandbox.com/s360/app/applications/v1/context/app?contextId=bc85d02d-c410-4706-8995-9720b501adfb' \
--header 'Authorization: Bearer ' \
--header 'X-Request-Id: {% faker datatype.uuid %}' \
--header 'api_key: 5k5a9rnknaj87kthytganapc'

Responses

🟢200Success-UserContext
application/json
Body

Examples
{
    "status": 200,
    "esbUUID": "51368f50-4a67-42d4-803c-ddc80c0be491",
    "desc": {
        "en": "Success",
        "ar": "نجاح",
        "code": "plain"
    },
    "data": {
        "context": {
            "user": {
                "sessionId": "c9e12c13-589e-4f3a-9273-e9300fda0ee3",
                "externalSystemId": "chatbot",
                "authorityType": "SELF",
                "selfProfile": [
                    {
                        "profileId": 601804,
                        "nameEn": "DAWOOD ALI ABDULLA ALI AHMAD",
                        "nameAr": "داود على عبدالله على احمد",
                        "mobileNo": "058597xxxx",
                        "email": "john@icloud.com",
                        "type": "INDIVIDUAL",
                        "isActive": true
                    }
                ]
            }
        }
    }
}
🟢200Success-AppContext
🟠403Forbidden
🟠401Unauthorized
🔴500Server Error
🔴504APIMGatewayTimeout
🟠403APIMDeveloperInactive
🟠404FlogoException
🔴500Unknown Error
Modified at 2024-10-02 05:01:44
Previous
Refresh Session
Next
GetContext User
Built with