You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main/docs/universal-components/my-organization/introduction.mdx
+39-59Lines changed: 39 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,20 +50,16 @@ permalink: Introduction
50
50
51
51
## Setup Requirements
52
52
53
-
Before using any My Organization components, you need to configure your Auth0 tenant with the proper APIs, applications, and permissions. Follow these steps to set up your environment:
53
+
Before using any My Organization components, you need to configure your Auth0 tenant with the proper APIs, applications, and permissions. Follow these steps to set up your environment.
54
54
55
55
<Info>
56
56
**Auth0 Dashboard Configuration** - Complete all steps below before using My
57
57
Organization components.
58
58
</Info>
59
59
60
60
<Steps>
61
-
<Steptitle="Activate the API">
62
-
Go to **APIs → My Organization API** and make sure it's enabled for your tenant.
63
-
</Step>
64
-
65
-
<Steptitle="Create SPA Application">
66
-
Go to **Applications → Create Application**:
61
+
<Steptitle="Create Application">
62
+
Go to **Dashboard → Applications → Create Application**:
67
63
68
64
- Choose "Single Page Web Applications"
69
65
- For development mode, add `http://localhost:5173` to:
@@ -79,26 +75,44 @@ Before using any My Organization components, you need to configure your Auth0 te
79
75
80
76
</Step>
81
77
82
-
<Steptitle="Setup Client Configuration">
83
-
In **Applications → Your App → Settings**, configure the following:
78
+
<Steptitle="Enable the My Organization API">
79
+
Navigate to **Dashboard → Applications → APIs** and select **My Organization
80
+
API**. Ensure it's enabled for your tenant.
81
+
</Step>
84
82
85
-
**Advanced Settings Section:**
86
-
-**Grant Types**: Ensure "Authorization Code" and "Refresh Token" are enabled
87
-
-**Token Endpoint Authentication Method**: Set to "None" for SPA (or "Client Secret Post" for Regular Web App)
83
+
<Steptitle="Configure Application Access">
84
+
While still on the My Organization API page, select the **Application Access** tab and click **Edit** for your Application.
88
85
89
-
<Note>
90
-
These settings are required for My Organization components to function properly. The "Prompt after login" flow allows users to select which organization they want to access.
91
-
</Note>
86
+
Configure the following settings:
87
+
- **Connection Profile** (Optional) - Select or create a profile with connection attribute mappings
88
+
- **User Attribute Profile** (Optional) - Select or create a profile with user attribute mappings
89
+
- **Supported Identity Providers** - Enable providers your customers can use
90
+
- **Connection Deletion Behavior** - Choose **Allow** or **Allow if Empty**
91
+
- **User Access Authorization** - Choose **Unauthorized**, **Authorized**, or **All**
- **All**: Include all existing and future permissions.
105
+
</Accordion>
92
106
93
107
</Step>
94
108
95
109
<Steptitle="Setup Database & User">
96
-
- Create a Database connection - In Applications tab, enable your new SPA app
97
-
- Create a user in this database (for testing purposes)
110
+
- Create a Database connection - In the Applications tab, enable your new SPA
111
+
app - Create a user in this database (for testing purposes)
98
112
</Step>
99
113
100
114
<Steptitle="Setup Role">
101
-
Create a role or use existing (e.g., "Organization Admin") and add required permissions:
115
+
Create a role or use an existing one (e.g., "Organization Admin") and add the required permissions from the My Organization API.
102
116
103
117
<Accordiontitle="Required Permissions">
104
118
```
@@ -125,6 +139,10 @@ Before using any My Organization components, you need to configure your Auth0 te
125
139
```
126
140
</Accordion>
127
141
142
+
<Note>
143
+
The user's token will only include permissions that exist in both their assigned role and the User Access Authorization settings configured in the previous step.
144
+
</Note>
145
+
128
146
</Step>
129
147
130
148
<Steptitle="Create Organization">
@@ -135,46 +153,6 @@ Before using any My Organization components, you need to configure your Auth0 te
135
153
136
154
</Step>
137
155
138
-
<Steptitle="Create Client Grant">
139
-
Create a client grant for the user & client pair to solve access control:
140
-
141
-
```json
142
-
POST https://{{auth0_domain}}/api/v2/client-grants
You need a Management API token to make this request. Get one from **Applications → APIs → Auth0 Management API → API Explorer**.
174
-
</Note>
175
-
176
-
</Step>
177
-
178
156
<Steptitle="Configure Environment Variables">
179
157
Create a `.env` file in your project with your Auth0 configuration. The exact variables depend on your application type.
180
158
@@ -200,7 +178,9 @@ Before using any My Organization components, you need to configure your Auth0 te
200
178
</Steps>
201
179
202
180
<Info>
203
-
You are responsible for ensuring that your use of the My Organization API and Embeddable UI Components comply with your security policies and applicable laws, including any permissions granted to your end users.
181
+
You are responsible for ensuring that your use of the My Organization API and
182
+
Embeddable UI Components comply with your security policies and applicable
183
+
laws, including any permissions granted to your end users.
0 commit comments