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!

Logout in the post-auth method

Filip HuysmansJul 11 2024

Hi everyone,

APEX Version 22.2.14.

We have multiple authentication schemes which refer all to external OAuth IDP providers, like MS Azure.

They are all working.

Now there are scenario's when we receive the data of the User Endpoint URL, we need to verify some attributes being returned. When attributes are not filled in or filled in with the wrong value, we need to send the user to an error page. This we can achieve.

But, meanwhile the user stays logged in.

Is there a way to perform an logout in the post-authentication method, so that the user is certainly nog logged in and that we can send him to an error page?

I tried with "apex_authentication.logout(:SESSION, :APP_ID);", in the post-auth method and the verify function, in both places the user gets redirected to a very basic page :

Telling the user that there is an internal error and he needs to contact the application administrator.

What is the right way of performing such a functionality?

Thx in advance.

Comments
Post Details
Added on Jul 11 2024
5 comments
555 views