Jump to content
Welcome to our new Citrix community!

Need Help in Citrix Storefront Session Service Request Token and Launch Session

Manoj Sharma1709161138

Recommended Posts

I am trying to get Request Token for Session Service and Start a Citrix Session using Citrix APIs., please take a look at the description of usecase.

Usecase Description (for Storefront):
1. Get Request token for Session services:
    + Docs: https://developer-docs.citrix.com/projects/storefront-authentication-sdk/en/latest/security-token-services-api/#request-token
    + URL: <storefront-url>/Authentication/auth/v1/token
    + Method: POST
    + Service: Session Service

2. List all available Sessions using Request Token(for api auth) & Session parameters:
    + Docs: https://developer-docs.citrix.com/projects/storefront-services-api/en/latest/sessions-service/#request_1

3. Launch Session using Request Token, Launch parameters & Session Ids:
    + Docs:
        -> https://developer-docs.citrix.com/projects/storefront-services-api/en/latest/launch/#launch-examples
        -> https://developer-docs.citrix.com/projects/storefront-services-api/en/latest/sessions-service/#example-request-session-information
    + Url: <storefront-url>/sessions/v1/{session-id}/launch/ica
    + Method: POST

To generate Request Token for Session services I tried (using postman).
    + Url: <storefront-url>/Citrix/Authentication/auth/v1/token
    + Method: POST
    + Request Body:
        <?xml version="1.0" encoding="utf-8"?>
        <requesttoken xmlns="http://citrix.com/delivery-services/1-0/auth/requesttoken">
            <reqtokentemplate />
    + Accept: application/vnd.citrix.requesttokenresponse+xml, application/vnd.citrix.requesttokenchoices+xml
    + Content-Type: application/xml
    + Response: "401-Unauthorized: Access is denied due to invalid credentials".
    + It seems I need credentials to access session services APIs, so can anyone provide more details on:
        -> Do I require extra priviliege to acess the Store front APIs? How Citrix API access can be enabled?
        -> How I can get the details of Credentials and Request Parameter Details Required to access the APIs?
            - for-service
            - for-service-url

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...