7.3 Enabling Authorization for REST Enabled Objects

Restrict access for REST enabled objects on the REST tab in Object Browser. Use the resulting Authorization Role information to configure user roles in ORDS.

When authorization is disabled for REST enabled objects, they are fully exposed to normal internet traffic and publicly accessible. After you enable authorization for the object in Object Browser, you must use the resulting Authorization Role to configure your authorized user roles in ORDS.

Use the procedures in Configuring Secure Access to RESTful Services in the Oracle REST Data Services Installation, Configuration, and Development Guide to configure ORDS.

To enable authorization on a REST enabled object:

  1. On the Workspace home page, click SQL Workshop.
  2. Select Object Browser.
  3. From the list of object types, select the object type (such as Tables).
  4. Select the REST enabled object.
  5. Select the REST tab of the REST enabled object.
  6. For Authorization Required, click to Yes.
  7. Click Apply.

A new Authorization Role field appears showing the ORDS created role associated with the AutoREST Enabled object.

Description of authorization_role.png follows
Description of the illustration authorization_role.png

Attempting to access the RESTful URI for the object now displays a "401 - Unauthorized" error message.

Description of unauthorized.png follows
Description of the illustration unauthorized.png

See Also:

Configuring Secure Access to RESTful Services in the Oracle REST Data Services Installation, Configuration, and Development Guide