-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[7.11] Fix embedding docs #94371
[7.11] Fix embedding docs #94371
Conversation
The docs that were backported to 7.11 described the Public URL feature, which is not available until 7.12. This commit simply reverts this section back to what it was before.
If you have multiple authentication providers enabled, and you want to automatically log in anonymous users when embedding dashboards and visualizations, then toggle *Public URL* in the *Share > Embed code* menu in *Dashboard* or *Visualize*. | ||
If you have multiple authentication providers enabled, and you want to automatically log in anonymous users when embedding, then you will need to add the `auth_provider_hint=<anonymous-provider-name>` query string parameter to the {kib} URL that you're embedding. | ||
|
||
You can also use the *Public URL* toggle when you're generating permanent links to dashboards, visualizations, and saved searches. | ||
For example, if you generate the iframe code to embed {kib}, it will look like this: | ||
|
||
NOTE: The *Public URL* toggle is only available if anonymous access is properly configured and your anonymous service account has privileges to access what you want to embed or share. | ||
```html | ||
<iframe src="https://localhost:5601/app/dashboards#/view/722b74f0-b882-11e8-a6d9-e546fe2bba5f?embed=true&_g=(....)" height="600" width="800"></iframe> | ||
``` | ||
|
||
To make this iframe leverage anonymous access automatically, you will need to modify a link to {kib} in the `src` iframe attribute to look like this: | ||
|
||
```html | ||
<iframe src="https://localhost:5601/app/dashboards?auth_provider_hint=anonymous1#/view/722b74f0-b882-11e8-a6d9-e546fe2bba5f?embed=true&_g=(....)" height="600" width="800"></iframe> | ||
``` | ||
|
||
Note that `auth_provider_hint` query string parameter goes *before* the hash URL fragment. | ||
|
||
For more information, refer to <<embedding, Embed {kib} content in a web page>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This basically duplicates the content that the aforementioned PR moved to the linked embedding
page.
Alternatively, we could change this to just say:
If you have multiple authentication providers enabled, and you want to automatically log in anonymous users when embedding, then you will need to manually modify the {kib} URL in the iframe code. For more information, refer to <<embedding, Embed {kib} content in a web page>>.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the shorter version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either way LGTM.
If you have multiple authentication providers enabled, and you want to automatically log in anonymous users when embedding dashboards and visualizations, then toggle *Public URL* in the *Share > Embed code* menu in *Dashboard* or *Visualize*. | ||
If you have multiple authentication providers enabled, and you want to automatically log in anonymous users when embedding, then you will need to add the `auth_provider_hint=<anonymous-provider-name>` query string parameter to the {kib} URL that you're embedding. | ||
|
||
You can also use the *Public URL* toggle when you're generating permanent links to dashboards, visualizations, and saved searches. | ||
For example, if you generate the iframe code to embed {kib}, it will look like this: | ||
|
||
NOTE: The *Public URL* toggle is only available if anonymous access is properly configured and your anonymous service account has privileges to access what you want to embed or share. | ||
```html | ||
<iframe src="https://localhost:5601/app/dashboards#/view/722b74f0-b882-11e8-a6d9-e546fe2bba5f?embed=true&_g=(....)" height="600" width="800"></iframe> | ||
``` | ||
|
||
To make this iframe leverage anonymous access automatically, you will need to modify a link to {kib} in the `src` iframe attribute to look like this: | ||
|
||
```html | ||
<iframe src="https://localhost:5601/app/dashboards?auth_provider_hint=anonymous1#/view/722b74f0-b882-11e8-a6d9-e546fe2bba5f?embed=true&_g=(....)" height="600" width="800"></iframe> | ||
``` | ||
|
||
Note that `auth_provider_hint` query string parameter goes *before* the hash URL fragment. | ||
|
||
For more information, refer to <<embedding, Embed {kib} content in a web page>>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the shorter version.
See #90409 (comment):
Docs preview: https://kibana_94371.docs-preview.app.elstc.co/guide/en/kibana/7.11/kibana-authentication.html