Subscribing to an Authentication Scheme allows applications to reuse authentication configurations from a master application. This ensures consistency across multiple applications and makes it easier to manage authentication settings.
Why Subscribe to an Authentication Scheme?
Ensures authentication settings remain consistent across multiple applications.
Reduces maintenance effort by allowing changes to be managed from a single master scheme.
Automatically updates subscribed authentication schemes when changes are made to the master.
How to Subscribe to an Authentication Scheme
Navigate to the Authentication Schemes Page
Log in to your Oracle APEX workspace.
Open App Builder and select your application.
Click Shared Components from the application menu.
Under Security, select Authentication Schemes.
Select or Create an Authentication Scheme
If you are creating a new authentication scheme, click Create and follow the setup process.
If you want to subscribe an existing scheme, select it from the list.
Subscribe to an Authentication Scheme
On the Authentication Scheme Create / Edit page, find the Subscription section.
Under Subscribe From, select the source application that has the master authentication scheme.
Click Apply Changes to establish the subscription.
Manage Subscription Updates
When the master authentication scheme is updated, subscribed schemes can be refreshed to reflect changes.
To update, navigate to Authentication Schemes, select the subscribed scheme, and click Refresh Subscription.
Unsubscribe if Needed
If you want to detach the authentication scheme from the master, select Unsubscribe on the Authentication Scheme Edit page.
Once unsubscribed, the authentication scheme becomes independent and no longer receives updates from the master.
By subscribing to an authentication scheme, developers can streamline authentication management across multiple applications while maintaining security and consistency.
Creating a Login Page in Oracle APEX
A login page is essential for securing your application by authenticating users before granting access. Oracle APEX automatically generates a login page when you create an application that requires authentication. However, you can also create a custom login page manually.
Steps to Create a Login Page in Oracle APEX
1. Navigate to the App Builder
Log in to Oracle APEX.
Open App Builder and select the application where you want to create a login page.
2. Create a New Page
Click Create to add a new page.
Select Login Page under Authentication.
Click Next to proceed.
3. Configure the Login Page
Page Name: Enter a name for the login page (e.g., "User Login").
Page Mode: Choose whether this will be the default login page or a custom one.
Authentication Scheme: Select the authentication scheme to use (e.g., APEX Accounts, Database Authentication, LDAP, Social Sign-In).
Click Next and then Create Page.
4. Customize the Login Page (Optional)
Open the newly created Login Page in Page Designer.
Modify UI elements like the username and password fields, buttons, and messages.
Add any additional PL/SQL validation logic for custom authentication.
5. Set the Login Page as the Authentication Page
Go to Shared Components > Authentication Schemes.
Open your authentication scheme and ensure it references the newly created Login Page as the Login URL.
Click Apply Changes.
6. Test the Login Page
Run the application and verify that the login page appears before accessing other pages.
Enter credentials to confirm authentication works correctly.
Customizing the Login Process
Use Session State Protection to enhance security.
Add custom authentication logic using PL/SQL functions.
Implement password reset functionality if needed.
No comments:
Post a Comment