Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom Authentication: Access denied by Application security check

RyanSFO-OracleMay 5 2023 — edited May 5 2023

I just changed my application from APEX Authentication to Custom Authentication. It seems to work perfectly well, I'm able to sign in with the user names and passwords that I have in my database table. I have a number of pages that are public, and they work just fine. I built a few Authorization Schemes as well, that check a privilege level within my database. As long as the page is set to public, this works (a non-logged in user gets an error, a logged in user with insufficient privilege gets an error, a logged in user with sufficient privs is able to view the page).

However, if I set the page to Authentication: Page Requires Authentication, every user receives “Access denied by Application security check”. This set up:

Produces this error:

This setup (with an admin user):

Works, but with a non-admin user, I recieve this (so I know my Authorization Scheme is working):

The only exception is if a user account in my custom scheme has the same user name as a prior user in my APEX scheme. They can then load the page just fine.

I assume with custom authentication, I should be able to use the Authentication: Page Requires Authentication setting? What am I missing in my custom auth settings that checks this?

I'm using APEX 22.2.4 in OCI. Thanks!

These are the settings in my custom auth section:

This post has been answered by RyanSFO-Oracle on May 5 2023
Jump to Answer
Comments
Post Details
Added on May 5 2023
2 comments
3,837 views