Oracle Access Manager 12c (OAM 12.2.1.3): Unable To Create OAuth2 Resource Or Identity Domains Using Curl
(Doc ID 2455141.1)
Last updated on DECEMBER 02, 2024
Applies to:
Oracle Access Manager - Version 12.2.1.3.0 and laterInformation in this document applies to any platform.
Oracle is not responsible for instructions/information from 3rd party sites that may be contained in this KM note.
Symptoms
Oracle Access Manager 12c (OAM 12.2.1.3)
When attempting to create test identity and resource domains for OAuth in OAM 12c using curl the following error occurs.
ERROR
-----------------------
***** Resource Domain *****
HTTP/1.1 416 Requested Range Not Satisfiable
***** Identity Domain ******
HTTP/1.1 404 Not Found
STEPS
1. curl -i -H \"Content-Type:application/json\" -u <OAM_ADMIN>:<PASSWORD> --request POST http://<OAM_HOSTNAME>:<OAM_PORT>/oam/services/rest/ssa/api/v1/oauthpolicyadmin/application -d "{\"name\":\"ResServer1\",\"description\":\"TestResourceServer\",\"scopes\":[\"scopeName\":\"scope1\",\"description\":\"ViewPage\"]}"
2. curl -i -H \"Content-Type:application/json\" -u <OAM_ADMIN>:<PASSWORD> --request POST http://<OAM_HOSTNAME>:<OAM_PORT>/oam/services/rest/ssa/api/v1/oauthpolicyadmin/oauthidentitydomain -d "{\"name\":\"TestOAuth2Domain\",\"identityProvider\":\"<ID_STORE>\",\"description\":\"Test OAuth2 Domain\"}"
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! |
In this Document
Symptoms |
Cause |
Solution |