Glean Settings
Integrate Glean settings into your internal app to allow users to connect certain datasources that require seperate authentication (for example, Slack RTS, GitHub) so Glean can access their private data on their behalf.

It is possible for browser security features to prevent the OAuth popup from informing the SDK that a user has successfully authenticated. For the highest reliability, use the Glean web app or the checkdatasourceauth API
Implementation Guide
Adding the JavaScript Client
First, include the JavaScript library in the <head> section of your page. Replace GLEAN_APP_DOMAIN with your company's Glean web app domain (typically app.glean.com or your-company.glean.com if you use a custom subdomain).
The Glean web app domain differs from your company's Glean backend domain
(which typically follows the format your-company-be.glean.com).
- HTML
<script
defer
src="https://{GLEAN_APP_DOMAIN}/embedded-search-latest.min.js"
></script>
Configuration and Setup
-
Create a container element with the following required CSS properties:
position: relativedisplay: block- Appropriate sizing and positioning
-
Render Settings into your container:
- JavaScript
window.GleanWebSDK.renderSettings(containerElement, { /** Options */ });
For detailed configuration options and customizations, refer to our renderSettings API documentation.