Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doubt #3

Closed
spinaldf opened this issue Sep 17, 2019 · 1 comment
Closed

Doubt #3

spinaldf opened this issue Sep 17, 2019 · 1 comment

Comments

@spinaldf
Copy link

How can i add option of user and passwd?

I create index.php:

''; $metabase = new \Metabase\Embed($metabaseUrl, $metabaseKey); // Generate the HTML to create an iframe with the embedded dashboard //echo $metabase->dashboardIframe($dashboardId, $params); echo $metabase->dashboardIframe($dashboardId); ?>
@ipeevski
Copy link
Owner

You can't (and shouldn't) use user/password. Generate API key through metabase's admin panel and use that as the $metabaseKey

Here is a link to the instructions of how to generate the key: https://github.com/metabase/metabase/blob/master/docs/administration-guide/13-embedding.md#enabling-embedding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants