Highlighted
Respected Contributor.
Respected Contributor.
112 views

Desktop OTP Enroll via API

Hi

 

I am trying to use the desktop OTP enroll API published here:

https://www.netiq.com/documentation/advanced-authentication-63/apidoc/data/apidoc.html#totp-enroll-enroll-new-totp-post

If I do a curl https://mfa-server//api/v1/otp-enroll/?user_name=userid&password=xxxxx I get a 405 error:  ERROR 405: Method Not Allowed

The docs does not mention anything else apart from calling the api. Is there some config I missed or do I need something else to call the API ?

Thanx

0 Likes
2 Replies
Highlighted
Respected Contributor.
Respected Contributor.

Method stands for http-method like GET/POST. This function can be used with a HTTP Post and you're doing a HTTP Get request. The Get method is not allowed and that is why you get a 405 response.

0 Likes
Highlighted
Respected Contributor.
Respected Contributor.

Alexander

 

Thanx for the quick reply. I did not realize (or look properly) that it was a POST call. Al working now.

 

Johan

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.