Before building consumer-facing applications, you must first configure Foundry to support consumer mode. This page guides you through the requirements to properly configure consumer mode in Foundry.
This setup is only required when using Foundry user permissions and authentication. If you are using a client credentials flow in your consumer application, you can skip this section.
Before configuring Foundry, ensure you have the following:
First, create a dedicated organization for consumer users that is isolated from internal platform users.
No
for consumer organizations.Note that enrollments are limited to five organizations by default.
Next, configure your consumer organization to prevent users from discovering other users and groups within the organization, providing additional privacy and security isolation.
Learn more about cross-organization collaboration and member discovery.
The next step in configuring consumer mode is to set up an authentication provider that automatically assigns consumer users to your consumer organization.
Create a group that aligns with your consumer organization for consistent permission management. After this step, you should have one or more automatically updating groups to permission all your consumer users. If all users belong to a single organization, you must create a single rule-based group for the organization; if users belong to multiple organizations, create a rule-based group for each organization.
For ease of permissions management when building and managing consumer applications, we recommend designating both a "Builder" and "Administrator" group. Create these groups in your identify provider if managing groups outside Foundry, or refer to our managing groups documentation for creating the groups within Foundry.
Configure a role set that provide appropriate permissions for consumer users.
Consumer roles
).Consumer
role:After creating the new Consumer
role, add the following operation permissions:
carbon:view-workspace
eddie:view-aip-logic
foundry:read-data
function-executor:execute-function
function-registry:read-contract
function-registry:read-function
hubble:object-view:view
lime:search
object-set-service:read-versioned-object-set
objects:read-data
ontology:view-action-type
ontology:view-datasource
ontology:view-object-type
ontology:view-relation
slate:run-query-v2
slate:view-document
slate:view-stylesheet
third-party-application:view-application
workshop-server:view-module
Consumer spaces provide isolation and access control. After this step, you should have a dedicated space where consumer users can access projects.
Create a project template that automatically configures appropriate roles for consumer projects, ensuring consistent project creation.
Name
variable.Consumer
role.Editor
role.Owner
role.Set up a custom domain configured for consumer access with automatic authentication redirect enabled.
Navigate to Control Panel > Domains & certificates, then follow our documentation guidanceto create a custom domain for consumer use.
When multiple IDPs are configured for a single domain, use the realm parameter to specify the provider:
https://consumer.yourdomain.com/workspace/application/[rid]?realm=auth0-realm-id
You can find the realm ID Control Panel > Authentication > [Provider Name] > Advanced Settings > Realm.
Prevent consumer users from accessing the broader Foundry platform and ensure they only have access to applications needed for their consumer experience.
Build a consumer application, and set up automatic redirection to the application on login.
/module/view/latest/{module-rid}
/slate/app/{dashboard-rid-or-permalink}
/carbon/{workspace-rid}
stable
, beta
, or prior
), and configure version switcher access.Your Foundry platform is now configured for consumer mode.
After configuring consumer mode for Foundry, verify your set up using the following validation process:
Create a project in the consumer space using the consumer project template:
Create a temporary resource, such as a Workshop application, for permissions validation:
Create a consumer user in the consumer IDP and log in to Foundry:
Switch back to your user and use the Check Access panel:
Once your Foundry consumer mode setup is complete, proceed with setting up your specific consumer application type: