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: README.md
+6-11Lines changed: 6 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,18 +36,13 @@ npm run docker:up
36
36
37
37
### Running locally with an existing Metabase instance
38
38
39
-
Before running, ensure your Metabase instance is configured:
40
-
41
-
- Guest and modular embedding must be enabled in Admin > Embedding settings
42
-
- Static embedding secret key must be set
43
-
- JWT authentication must be enabled with a shared secret
44
-
- A dashboard must be published via the Embed JS editor
39
+
Before running, ensure your Metabase instance is configured following the [guest embedding setup guide](https://www.metabase.com/docs/latest/embedding/guest-embedding) and [SSO authentication guide](https://www.metabase.com/docs/latest/embedding/authentication).
45
40
46
41
1. Copy the environment file:
47
42
48
43
```bash
49
44
cp .env.example .env
50
-
# Edit .env with your Metabase instance URL and JWT secrets
45
+
# Edit .env with your Metabase instance URL, JWT secrets, and dashboard ID
51
46
```
52
47
53
48
2. Install dependencies and start the server:
@@ -56,9 +51,8 @@ cp .env.example .env
56
51
npm install
57
52
npm start
58
53
```
59
-
3. On your instance open any dashboard and publish it by going through EmbedJS Wizard => Guest embed setup
60
54
61
-
4. Open http://localhost:3100 in your browser
55
+
3. Open http://localhost:3100 in your browser
62
56
63
57
## Project Structure
64
58
@@ -76,7 +70,7 @@ npm start
76
70
77
71
### Guest Embed (Signed JWT)
78
72
79
-
Guest embeds use signed JWT tokens to provide anonymous access to specific dashboards or questions. The server signs a token containing the resource ID and parameters, which is then passed to the `<metabase-dashboard>` component.
73
+
Guest embeds use signed JWT tokens to provide anonymous access to specific dashboards or questions. The server signs a token containing the resource ID and parameters, which is then passed to the `<metabase-dashboard>` component. See the [guest embedding docs](https://www.metabase.com/docs/latest/embedding/guest-embedding) for more details.
SSO embeds authenticate users via JWT, creating a full user session in Metabase. The server returns a JWT containing user information when the embed.js client requests authentication.
99
+
SSO embeds authenticate users via JWT, creating a full user session in Metabase. The server returns a JWT containing user information when the embed.js client requests authentication. See the [authentication docs](https://www.metabase.com/docs/latest/embedding/authentication) for more details.
0 commit comments