Oracle Backend with Supabase APIs Authentication
Authentication in Oracle Backend with Supabase APIs is designed to be flexible, secure, and developer-friendly. It supports multiple identity providers, including traditional email/password login, enterprise-grade LDAP, Oracle Identity Cloud Service (IDCS), and popular social login providers like Google and Facebook. The system uses token-based authentication to ensure stateless and scalable access control across services.
Overview
Oracle Backend with Supabase APIs Authentication simplifies application security by providing client SDKs and a Console to create and manage application users. You can enable multiple sign-in methods, including email/password, social identity providers (for example, Google, Facebook, and GitHub), and third-party IDPs using SAML or OIDC. The service can also integrate directly with an Oracle IAM Domain to deliver enterprise-grade features such as Multi-Factor Authentication (MFA) and federated Single Sign-On (SSO).
A signed-in application user has an account recognized by the project’s authentication backend and a valid access token. Authentication establishes identity; each service also applies its authorization requirements. For relational database access, Deep Data Security evaluates data grants for the request’s data roles and user context.
Key Capabilities
Use the JavaScript SDK to add authentication to a web application. Use this section to select a capability and find the corresponding instructions.
Supported platform: Web/JavaScript.
| Capability | What you can do | Platform docs |
|---|---|---|
| Email and password | Create users, sign in, and reset passwords. | User Management Operations |
| Social sign-in | Sign in with Google, Facebook, or GitHub. | Set up Social Sign-in (GitHub, Google, and more) |
| OIDC and SAML providers | Integrate a third-party OIDC or SAML identity provider. | Configuring OIDC and SAML Identity Providers |
| Auth state and current user | Listen for Auth state changes and read the current user profile. | Persistence Settings |
| Profile updates | Update displayName and photoURL. |
User Management Operations |
| Email verification | Send verification emails and confirm addresses. | Email Verification and Password Reset |
| Password updates | Update a signed-in user’s password. | User Management Operations |
App Users
The application user object represents a user account that has signed up for an app in your project. Apps usually have many registered users, and every app in a project shares the Auth Service database.
Basic Properties
Any registered user in Oracle Backend with Supabase APIs Authentication has basic properties such as:
-
Unique ID
-
Display name
-
Email (also the username for the user)
-
Sign-in method used for registration (for example, email/password, Google, Facebook)
-
Creation time
Lifecycle Of Application Users
The JavaScript SDK provides listener callbacks for authentication state changes. The relational client’s onAuthStateChange() callback reports the initial session and these subsequent changes:
-
A user signs in (the current user is set).
-
A user signs out (the current user becomes null).
The relational client’s onAuthStateChange() callback does not emit a token-refresh event.
Application User Self-Service
The JavaScript SDK provides interfaces to perform user profile management operations:
-
Update profile (for example,
displayName) -
Reset password
-
Verify email address
Auth Tokens
When you use Oracle Backend with Supabase APIs Authentication, you can encounter these Auth tokens:
-
Oracle Backend with Supabase APIs Auth Token: Issued after a successful sign-in. The scope contains the services the user can access (for example,
database,auth, andstorage). -
Oracle IDCS Token: Used when Authentication integrates with Oracle IDCS. Oracle Backend with Supabase APIs exchanges a valid IDCS access token for an Oracle Backend with Supabase APIs Auth Token. External IDCS uses the end-user access token directly for service requests.
See Also: Auth Tokens for full token and Auth object details
Using Auth in your App
When to Use Authentication
Use Oracle Backend with Supabase APIs Authentication whenever your application needs to:
-
Identify users securely
-
Restrict access to specific data or actions
-
Track user activity
-
Integrate with external identity providers
How to Configure
Select a project authentication backend and configure its sign-in methods in the Console. See Setting Up Authentication.
What is Authentication
Authentication is the process of verifying who is making a request from an application.
-
It establishes the identity of the user.
-
In Oracle Backend with Supabase APIs, authentication is handled through the JavaScript SDK and the Console.
-
Supported methods include Email/Password, Social Identity Providers, and Third‐party Identity Providers (SAML/OIDC).
-
Authentication tokens identify signed-in users when they call services.
Note: Authorization differs from authentication because it determines what an authenticated user is allowed to do. Authentication verifies identity; authorization determines permissions.