@lindsey.homenick
To create custom authentication in Oracle APEX, you can follow these steps:
- Create a new authentication scheme:
Navigate to App Builder in your Oracle APEX workspace.
Go to Shared Components > Authentication Schemes.
Click on the "Create" button to create a new authentication scheme.
Choose the type of authentication scheme you want to create (e.g. custom authentication).
Configure the settings for the authentication scheme, such as authentication Function and granted roles.
- Create an authentication function:
Go to SQL Workshop > SQL Commands and create a PL/SQL function that will handle the custom authentication logic.
The function should return TRUE if the authentication is successful, and FALSE if it is not.
You can use the APEX_UTIL.SET_SESSION_STATE procedure to set session state variables based on the authentication result.
- Configure the authentication scheme settings:
In the authentication scheme settings, specify the authentication function you created in step 2.
Configure any additional settings, such as session management and cookie settings.
- Apply the authentication scheme to your application:
Go to App Builder > Your Application > Shared Components > Security Attributes.
Select the authentication scheme you created in step 1 as the authentication scheme for the application.
- Test the authentication:
Run your application and test the custom authentication functionality.
Make sure that users are successfully authenticated and granted the appropriate roles and privileges.
By following these steps, you can create custom authentication in Oracle APEX and implement your own authentication logic for your application.