HCP Tenant Management Help


Active Directory authorization header

You use the HTTP Authorization request header to provide the authentication token for a request. The value of this header is AD followed by the authentication token, in this format:

Authorization: AD authentication-token

For example, here’s the Authorization header for a user named lgreen and password p4ssw0rd:

Authorization: AD lgreen@example.com:p4sswOrd

Specifying the Authorization header with cURL

With cURL, you use the -H option to specify a header, like this:

curl -H "Authorization: AD lgreen@example.com:p4sswOrd"

Specifying the Authorization header in Python with PycURL

In Python with PycURL, you use the HTTPHEADER option to specify a header, as in this example:

curl.setopt(pycurl.HTTPHEADER, ["Authorization: AD
lgreen@example.com:p4sswOrd"])

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.