cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to use Workflow capability when starting App from Business Application Studio.

thejk
Explorer
0 Kudos

Hi Experts,
I developed an App that uses the Workflow capabilites from SAP Build Process Automation. After deploying the App to the Launchpad, everything works fine (using managed application router).

But if I start the App from within BAS ("npm start") the fetching of the XSRF-Token fails. Read-Access on the Workflow service is working. 

thejk_0-1711625456445.png

I can read workflow instances etc. without problems but if I try to change something on an instance and therefore try to fetch a XSRF-Token it fails with "403 User does not have sufficient privileges.

I am using the same user in BAS as in Launchpad, so I wonder why there should be an authorization Problem with my user.

This is my xs-app.json:

thejk_1-1711625818778.png

And this is the relevant part of my ui5.yaml:

thejk_2-1711625968389.png

I also tried these parameters, no success:

thejk_3-1711626058640.png

My User has these Roles:

thejk_5-1711626891915.png

 


Any hint is highly appreciated...

Regards,
Jürgen

 
 

Accepted Solutions (0)

Answers (1)

Answers (1)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello @thejk , 

If you notice in your xsapp.json you are using xsuaa authentication which means it will route through the service instance key and not through the user roles. Please ensure that you have disabled csrfTokenProtection. 

Please follow my earlier blog - troubleshooting section . This blog is based on old workflow service, but the concept remains the same. 

Hope that helps,
Archana