My Oracle Support Banner

401 Authorization Error For OAM OTP Rest API using Non Embedded LDAP (Doc ID 2432821.1)

Last updated on AUGUST 09, 2018

Applies to:

Oracle Access Manager - Version 12.1.2.3.180414 and later
Information in this document applies to any platform.

Symptoms

Making a rest api call to OAM to generate OTP using createOTP diplays "Not Authorized Error"


curl -u user:pwd -X POST -i -H 'Content-Type: application/json' http://<oamhost>:<oam_port>/oam/services/rest/auth/api/v1/mfa/createOTP -d '{"userId":"testuser","sessionId":"testSession1","appName":"TestApp","deliveryChannel":"email","email":"test@test.com"}'


ERROR
-----------------------
Not authorized. Provide Authorization Header

Changes

Changed the System LDAP Store to OUD

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.