1. What you'll do
In this guide, you'll learn how to:
- Understand how RBAC works in the OXU ecosystem.
- Define resources, permissions, and privileges for your application.
- Configure how application clients use privileges.
- Set up default access rules for OXU Workspace.
- Get started with RBAC integration in OXU Developer.
2. Why it matters
Role-Based Access Control (RBAC) helps you manage what users can access and do within your application.
By integrating with OXU RBAC, you can:
- Centralize permission management: Define your application's permissions and privileges in OXU Developer.
- Simplify access management: Organize permissions into reusable privileges instead of assigning individual permissions repeatedly.
- Control client access: Map privileges to application clients to define which capabilities they can use.
- Support Workspace authorization: Define recommended access rules that Workspace Administrators can apply when adding your app.
- Improve security: Help ensure users receive appropriate access based on their assigned Workspace roles and privileges.
3. How RBAC works
OXU RBAC connects your application's authorization model with access management in OXU Workspace.
The model consists of five main components:
| Component | Description |
|---|---|
| Resource Server | Represents the API or protected resources your application exposes. |
| Permission | Defines a specific action that can be performed on a protected resource, such as read:reports or edit:reports. |
| Privilege | Groups related permissions into a reusable set of capabilities. |
| Client Privilege Mapping | Defines which privileges are associated with a specific application client. |
| Default Access Template | Defines the recommended mapping between Workspace roles and application privileges. |
How these components work together
Step 1. Define your application's permissions
Create a Resource Server and define the actions users may perform on its protected resources.
Step 2. Organize permissions into privileges
Group related permissions into privileges that represent meaningful application capabilities.
For example, a Report Viewer privilege may include permission to view reports, while a Report Editor privilege may include permissions to view and edit reports.
Step 3. Map privileges to application clients
Configure Client Privilege Mapping to associate the relevant privileges with the appropriate application clients.
Step 4. Define default access for Workspace users
Configure a Default Access Template to recommend which privileges should be assigned to Workspace roles, such as Workspace Administrator and Workspace Member.
Step 5. Apply access rules in OXU Workspace
When your application is added to a Workspace, its Default Access Template serves as the starting point for access configuration.
Workspace Administrators can:
- Accept Developer Default: Apply the recommended role-to-privilege mapping.
- Override: Customize the mapping for their Workspace.
Your application can then enforce access rules based on the effective privileges granted to users.
4. Example: RBAC for a reporting app
Suppose you're building a reporting application that allows users to view, create, and manage reports.
You can define:
| Component | Example |
|---|---|
| Resource Server | Reporting API |
| Permissions | reports:read, reports:create, reports:edit |
| Privilege: Report Viewer | reports:read |
| Privilege: Report Editor | reports:read, reports:create, reports:edit |
You can then configure the Default Access Template:
| Workspace role | Recommended privilege |
|---|---|
| Workspace Administrator | Report Editor |
| Workspace Member | Report Viewer |
When a Workspace Administrator adds your app, they can accept these defaults or adjust the privileges to meet their organization's needs.
Note: The Default Access Template provides recommended access settings. Actual user access depends on the Workspace's effective role-to-privilege mapping and the application's authorization enforcement.
5. Before you begin
Make sure you have:
- An active OXU account.
- Permission to create and manage applications in OXU Developer.
- An existing application or permission to create one.
- A clear understanding of the resources and actions your application needs to protect.
- Identified the application clients that require privilege mapping.
If you plan to make your application available in OXU Workspace, you should also determine the recommended privileges for Workspace Administrators and Members.
6. Get started
Follow these steps to begin configuring RBAC for your application.
- Sign in to OXU Developer.
- Open App management.
- Select an existing application or create a new one.
- Navigate to Access control in your application's configuration.
- Open Quick start to review the RBAC setup process.
- Enable RBAC for your application, if it hasn't been enabled.
- Follow the guided setup to:
- Create a Resource Server.
- Define Permissions.
- Configure Privileges.
- Set up Client Privilege Mapping.
- Configure the Default Access Template.
- Review your RBAC configuration and test that the expected privileges are enforced.
Important: Configuring RBAC in OXU Developer does not automatically make your app available to Workspace users. To provide access through OXU Workspace, you must also configure the Workspace integration and activate your app.
7. What's next?
Continue with the following guides to complete your RBAC integration:
- Set up Resource Servers & Permissions: Define the resources and actions your application needs to protect.
- Configure Privileges: Group permissions into reusable application capabilities.
- Configure Client Privilege Mapping: Associate privileges with your application's clients.
- Set up Default Access Template: Define recommended access rules for Workspace roles.
- Test access control: Verify that application users receive the expected privileges and that unauthorized actions are denied.
Related guide: Add your app to OXU Workspace — Learn how to make your application available to users and apply Workspace access rules.