Highlighted
Outstanding Contributor.
Outstanding Contributor.
169 views

Rest API Basic Auth

Jump to solution

I'm creating some powershell scripts for NetIQ DRA 9.2 via the Rest API. They are running in Openshift containers (linux) and hence NTLM authentication is not an option. Is it possible to use another authentication schema like basic (over TLS of course!) so I can use non-windows machines for my scripts? This document indicates it supports Basic and client certificate auth but no guide on how to configure. 

If my post was helpful please award me Kudos! or Points 🙂
Tags (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Ok, so logged a support ticket and here is how it is done:

  • The authorization header needs to be encoded in Base64 as per standard implementation outlined here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
  • What caught me is the URI scheme, You do NOT use the Console URI schem for the interactive REST interface. For example:
    • This URI works with NTLM/Windows Integrated authentication: https://MyDRARestServer:8755/console/dra/domains/vhihealthcare.net/users/get
    • This woks with BASIC Auth: https://MyDRARestServer:8755/dra/domains/vhihealthcare.net/users/get
If my post was helpful please award me Kudos! or Points 🙂

View solution in original post

0 Likes
2 Replies
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Anyone?

If my post was helpful please award me Kudos! or Points 🙂
0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Ok, so logged a support ticket and here is how it is done:

  • The authorization header needs to be encoded in Base64 as per standard implementation outlined here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
  • What caught me is the URI scheme, You do NOT use the Console URI schem for the interactive REST interface. For example:
    • This URI works with NTLM/Windows Integrated authentication: https://MyDRARestServer:8755/console/dra/domains/vhihealthcare.net/users/get
    • This woks with BASIC Auth: https://MyDRARestServer:8755/dra/domains/vhihealthcare.net/users/get
If my post was helpful please award me Kudos! or Points 🙂

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.