Communicating with all registered Applications under a tenant using same access token
-
Hello, I have developed few applications where each Application is mapped to FusionAuth application for Authentication and Authorization. All these applications are within the same Tenant. I am using Authorization code flow in all my applications, which will fetch access and refresh tokens separately for each application.
I wanted to know if there is a way in the backend to communicate between these applications using the same access token. I have come across the issuing a JWT of other applications(https://fusionauth.io/docs/v1/tech/apis/jwt#issue-a-jwt) using an ApplicationID, but this will have latency issues for me as I have to find the ApplicationID and make request to the AuthServer and get the token. I want to communicate with all my application using a single token. Is that possible with FusionAuth right now?
-
@suryateja-a16-0 You should be able to add multiple applications to your access token using a JWT populate lambda: https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate
You can examine the user and see all the applications to which they are registered and add those all to the
aud
claim.Hope that helps.