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

    JKU in JWT Header

    Scheduled Pinned Locked Moved Q&A
    6 Posts 0 Posters 6.1k Views
    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.
    • A
      amar.sibia
      last edited by

      Hi,

      We have a 3rd party integration to whom we are sending our JWTs, they have prescribed they need the JKU populated in the JWT header for them to correctly verify the token. I seem to be struggling to find any documentation or mention of how or even if it is possible to configure the jku header in the JWT. Is there a way to get the jku header to be populated correctly?

      FusionAuth™ version 1.22.2

      1 Reply Last reply
      Reply Quote 0
      • D
        dtokarz1
        last edited by

        I'm sure the support guys will chime in shortly but you can modify the JWT information with lambdas. Here is the link...

        https://fusionauth.io/docs/v1/tech/lambdas/

        1 Reply Last reply
        Reply Quote 0
        • A
          amar.sibia
          last edited by

          We're already using that to populate claims details, but the documentation implies this is the JWT payload only and not the header

          1 Reply Last reply
          Reply Quote 0
          • danD
            dan
            last edited by

            You cannot modify JWT headers with a lambda. I can update the documentation to make that clearer.

            Please fee free to file an issue with your use case: https://github.com/fusionauth/fusionauth-issues/issues

            Here's our general roadmap guidance: https://fusionauth.io/docs/v1/tech/core-concepts/roadmap/

            --
            FusionAuth - Identity Without Constraints
            https://fusionauth.io

            1 Reply Last reply
            Reply Quote 0
            • danD
              dan
              last edited by dan

              I suppose one other option would be for you to have FusionAuth generate the JWT, then proxy the JWT, get the contents, add the JKU header, and then re-sign it. A brief googling indicates Kong can do this, maybe? https://docs.konghq.com/hub/kong-inc/jwt-signer/

              I also updated the documentation to make current limitations clearer: https://github.com/FusionAuth/fusionauth-site/pull/575

              Hope this helps.

              --
              FusionAuth - Identity Without Constraints
              https://fusionauth.io

              1 Reply Last reply
              Reply Quote 0
              • danD
                dan
                last edited by

                Updated the JWT populate lambda doc to make it clear that headers aren't modifiable at the present time: https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate/

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