web stats
OAuth2.0 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 08-08-2018, 06:36 AM
johnj12 johnj12 is offline
What's HL7?
Join Date: Mar 2015
Posts: 4
johnj12 is on a distinguished road
Default OAuth2.0


Could anyone give me a quick guide on how to setup a channel that posts a HL7 message to a HTTPs API that uses OAuth2?

I'm struggling with the parameters.

Basically I have the below instructions from the supplier:

Our API uses OAuth2.0, so to gain access, you will need to Base 64 encode your Client ID and Client Secret (CID:CSECRET), place that in the “Authorization: Basic ENCODED_DETAILS” header and post “grant_type=client_credentials” to https://someurl.com/api/auth.

If successful, using the access token that is returned, you can post your HL7 message to


Any help is appreciated, there isnt much out there on Mirth and OAuth2

Reply With Quote
Old 08-08-2018, 10:59 PM
siddharth siddharth is offline
Mirth Guru
Join Date: Feb 2013
Posts: 824
siddharth is on a distinguished road

Its pretty simple. The first destination would be a HTTP Sender connector, which will go to the auth end point, You can capture the token in the response transformer of this destination. Put the token in a channelMap for subsequent calls.

You have to break down the auth call and put things at the right place..if I remember correctly, clientID and secret goes in the query parameter.
HL7v2.7 Certified Control Specialist!
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 04:46 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation