My Oracle Support Banner

Oracle Access Manager 12c (OAM Unable To Create OAuth2 Resource Or Identity Domains Using Curl (Doc ID 2455141.1)

Last updated on AUGUST 30, 2023

Applies to:

Oracle Access Manager - Version and later
Information 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.


Oracle Access Manager 12c (OAM

When attempting to create test identity and resource domains for OAuth in OAM 12c using curl the following error occurs.

***** Resource Domain *****
HTTP/1.1 416 Requested Range Not Satisfiable

***** Identity Domain ******
HTTP/1.1 404 Not Found

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\"}"


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

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