How to use one token to send rest requests for two projects?

I managed to get token this way:

  1. Sent post method http://localhost:8081/app/idp/auth to server with port 8081 (Identity Provider and Service Provider):

  2. Sent post method http://localhost:8081/app/rest/v2/idp/token with idp_ticket from previous request:

With this token I can access rest services of 8081 app but can’t access 8082(Service Provider ) app.It says “Invalid access token”.
Here is web-app.propertis for both apps:

8082 app Service Provider

8081 (Identity Provider and Service Provider

Maybe there are some guides or documentation?

Hi,
For 8082, you need to repeat the process of http://localhost:8082/app/rest/v2/idp/token again.

For IDP ticket, we made idpticket always valid (in cuba, idpticket will be invalid after been used).

Then we found that for each SP, frontend should use different idp token. So we stopped use idp token.

We made some change like “share token”, it has no relation with any idp feature. Our change is: let’s say server B can use server A’s token, as cuba can save token in database, so while server B get a request, after validation token fails, server B will check server A’s database to fetch the token info, and store it in server B’s database. Then goes cuba logic.

I had this idea but thought idp already did it.Thank you!