web stats
Mirth Http Sender using windows authentication - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2019, 01:19 PM
jerchap jerchap is offline
OBX.3 Kenobi
 
Join Date: Nov 2007
Location: British Columbia, Canada
Posts: 129
jerchap is an unknown quantity at this point
Default Mirth Http Sender using windows authentication

We have a rest service that is secured requiring windows authentication (kerberos with fallback to ntml). When using the Http Sender we are geting an unauthorized error. Is there a way to configure the destination to pass the credentials of the service account?
Reply With Quote
  #2  
Old 09-30-2019, 07:39 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,005
agermano is on a distinguished road
Default

Not sure if it will work, but have you tried turning off authentication in the http sender?

If that doesn't work, you'll probably have to use the httpclient java classes directly rather than an HTTP Sender.
Reply With Quote
  #3  
Old 09-30-2019, 08:04 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road
Default

Another possibility would be for you to manually construct the value in a transformer, then include your custom Authorization header on the HTTP Sender. This would still require some work obviously, but maybe it's possible using the jCIFS library that is included with Connect by default:

https://stackoverflow.com/questions/...a-applications
http://davenport.sourceforge.net/ntl...Authentication
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
Reply

Tags
http sernder, kerberos, ntlm, windows authentication

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 07:37 PM.


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