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 Posts 2 Posters 953 Views 1 Watching
    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 - Identity Without Constraints
        https://fusionauth.io

        1 Reply Last reply
        Reply Quote 0
        • danD dan moved this topic from Q&A on
        • danD dan moved this topic from Frequently Asked Questions (FAQ) on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post