Get Session Information - Fluid Topics - 3.6

Use Fluid Topics Web API

Product
Fluid Topics
FT_Version
3.6
Category
Technical Notes
language
English

This public web service allows to get information on a current session.

Method

Endpoint

GET

/api/authentication/current-session

Output example

  • When the session is not authenticated, the web service returns the following JSON output:

    {
    "sessionAuthenticated": false,
    "sessionId": "586f90be-93e3-4ddb-bc17-ac0d9d3f3335"
    }

    The user is not logged in and remains anonymous to Fluid Topics but a session is still created for these users to keep track of them.

  • When the session is authenticated, the web service returns the following JSON output:

    {
    "sessionAuthenticated": true,
    "sessionId": "0e19bb3a-dcd7-4e81-87e6-7abf5c098bc3",
    "profile": {
    "userId": "9e193047-860c-418b-8941-bfd59ca5b2a6",
    "displayName": "John Arthur Doe",
    "emailAddress": "jdoe@fluidtopics.com",
    "roles": [
    "KHUB_ADMIN",
    "PERSONAL_BOOK_USER",
    "DEBUG_USER",
    "PERSONAL_BOOK_SHARE_USER",
    "ADMIN",
    "PDF_EXPORT_USER",
    "BETA_USER",
    "PORTAL_ADMIN",
    "SAVED_SEARCH_USER",
    "USERS_ADMIN",
    "HTML_EXPORT_USER"
    ]
    },
    "authenticationIdentifier": {
    "identifier": "jdoe@fluidtopics.com",
    "realm": "Root User"
    }
    }

    Where:

    • The "profile" and "authenticationIdentifier" nodes are optional. They are only present when the session is authenticated (sessionAuthenticated == true).

      In this case, the web service returns a basic user profile.