Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Creating JWT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating JWT

    Maybe I'm not finding it but can someone point me in the direction on how to create a JWT within Mirth to send as part of OAuth2?

  • #2
    I don't think anyone has posted a complete working set of code for Mirth. You will need to Google how to do it in java and adapt the java code to Mirth.
    Diridium Technologies, Inc.
    https://diridium.com

    Comment


    • #3
      No idea if this would work or if it it what you are talking about, but maybe this? https://www.jonathan-petitcolas.com/...avascript.html

      Comment


      • #4
        You have to add the crypto JS library for that example upstart33 posted, usually as a code template.
        Diridium Technologies, Inc.
        https://diridium.com

        Comment


        • #5
          I'll take a look at using Node.js. I was using this https://forums.mirthproject.io/forum...17628-oauth2-0 as a starting point which he uses jose4j and seems mostly what I'm looking for.

          Comment


          • #6
            So I think where I got hung up on was the encoded base 64 key which I don't have so I'll do some testing and generation with PowerShell to see if that works.

            Comment


            • #7
              Small but big update - I scrapped using PowerShell to create the self-signed certificates and used OpenSSL instead. Then passing the private key to be decoded worked.

              Comment

              Working...
              X