FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Communicating with all registered Applications under a tenant using same access token

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    368
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      suryateja.a16 0
      last edited by

      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?

      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @suryateja.a16 0
        last edited by

        @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.

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • First post
          Last post