1. Introduction
Oracle APEX provides built-in support for OAuth 2.0 authentication, making it easy to integrate external identity providers like GitHub. By configuring a GitHub OAuth application and linking it with APEX authentication schemes, users can log in using their GitHub accounts seamlessly. This blog demonstrates a step-by-step setup for enabling GitHub Sign-In in Oracle APEX.
2. Tools and Technologies
To achieve the desired functionality, the following technologies are used:
- Oracle APEX
- Github Developer Application
- Web Credentials (APEX)
3. Business Requirement
In todayβs applications, users expect quick and secure authentication without managing multiple usernames and passwords. Integrating GitHub Sign-In in Oracle APEX allows organizations to:
- Enable single sign-on (SSO) for developers and technical usersΒ
- Improve security using OAuth 2.0 standardsΒ
- Reduce user onboarding timeΒ
- Leverage trusted third-party identity providersΒ
This approach is especially useful for developer portals, internal tools, SaaS dashboards, and technical communities built using Oracle APEX.
4. Implementation Steps
Step 1: Create a GitHub Developer (OAuth) Application.
- Log in to yourΒ GitHub account
- Navigate to:
- Settings β Developer Settings β OAuth Apps
- ClickΒ New OAuth App
- Provide the required details:
- Application Name: Your App Name
- Homepage URL: Your APEX application URL
- Authorization Callback URL: APEX redirect URL
- Save the application
- Note down:
- Client ID
- Client Secret


Use the following URL as the Authorized Redirect URI:
For Free Workspace APEX Application:
https://apex.oracle.com/pls/apex/apex_authentication.callbackFor Cloud APEX Application:
https://g37a3930ce7a574-ydtygwr0f9tqxelq.adb.ap-mumbai-1.oraclecloudapps.com/ords/apex_authentication.callbackThese credentials will be used in Oracle APEX.
Step 2: Set Up Web Credentials in Oracle APEX.
- Log in to yourΒ Oracle APEX Workspace
- Navigate to:
- App Builder β Workspace Utilities β All Workspace Utilities β Web Credentials
- Create a new Web Credential
- Enter:
- Client IDΒ (from GitHub)
- Client SecretΒ (from GitHub)
- Save the Web Credential


This securely stores your GitHub OAuth credentials in APEX.
Step 3: Configure GitHub Authentication Scheme in APEX.
- Go to:
- Your Application β Shared Components β Authentication Schemes
- ClickΒ CreateΒ (or modify an existing scheme)
- ChooseΒ Social Sign-In / OAuth 2.0
- Configure the following endpoints:
- Authorization Endpoint URL
https://github.com/login/oauth/authorize - Token Endpoint URL
https://github.com/login/oauth/access_token - User Info Endpoint URL
https://api.github.com/user - Scope
user - Username Attribute
email - Associate the previously createdΒ Web Credential
- Enable the switchΒ βEnable Authentication Schemeβ
- Set this scheme asΒ CurrentΒ if required

Step 4: Enable Session Support.
Ensure that the authentication scheme has session enabled, allowing APEX to maintain user login state after successful authentication.
Step 5: Implement GitHub Sign-In Button on Login Page.
- Navigate to:
- Your Application β Login Page
- Create a newΒ ButtonΒ (e.g.,Β Login with GitHub)
- InΒ Button Behavior:
- Action: Redirect to Page in this Application
- Target Page: Home Page
- InΒ Advanced β Request, set:
(Replace Github with the exact name of your authentication scheme)
This triggers GitHub authentication when the button is clicked.
APEX_AUTHENTICATION=github5. Final Output

Once configured, users can log in to your Oracle APEX application using their GitHub account. After successful authentication, they are redirected to the home page with a valid APEX session.
β Secure OAuth-based authentication
β Improved user experience
β Modern login approach for APEX apps
π Conclusion
Integrating GitHub Sign-In with Oracle APEX is a powerful way to modernize authentication while maintaining enterprise-grade security. With minimal configuration and no custom OAuth code, APEX enables seamless integration with GitHubβs identity platform.
This setup is ideal for applications targeting developers, internal teams, and technical users.
If you like this article Please share with your friends and family members to appreciate or work and help others.
Happy APEXING π
Love coding? Me too! Letβs keep in touch β subscribe to my website for regular chats on Oracle APEX, PL/SQL,SQL JavaScript, and CSS.



