Question Richard Housham · Jan 21, 2019

Http Request NTML Auth

Hi I'm using ensemble/cache 2016 is a NTML auth possible. Any code examples?

Currently I've got

set hr3 = ##class(%Net.HttpRequest).%New()
set hr3.Username = "xxxxxx/xxxxxxxxx" 
set hr3.Password = "xxxxxxx"
do hr3.Get("http://xxxxxxxxx/CaseNoteTracking/api/CaseNoteTrackingAPI/Get")

From the looks of things I need a http 1.1 request?

Comments

Dmitry Maslennikov · Jan 21, 2019

Hi, unfortunately, there are no ready solutions and mostly because NTLM auth is not so easy to implement, even in other languages. If it is possible, better to find another mechanism. 

0
Richard Housham  Jan 24, 2019 to Alexander Koblov

Yeah, that's the answer I got from WRC. You can't do it in 2016

0
Katherine Reid  Jan 28, 2019 to Richard Housham

The link above is to the latest documentation, which means it has the new features in 2018.1. You might want to look at the 2016.1 or 2016.2 documentation to make sure you're getting the right info for your version.

The %Net.HttpRequest property AuthenticationSchemes, which has Negotiate as an option is also new in 2018.1.

0