Area: UI Issues
Sub-Area: Chrome Extension / Looker Integration Authentication
Applies to: Cloud
Issue
You open the DataHub Chrome extension drawer on a Looker dashboard or explore. The drawer shows the DataHub login form, and you click "Sign in with SSO". A popup window opens and you finish SSO. Then the popup does not close. It stays open and shows the full DataHub app, and the drawer in Looker still shows the login form.
Here is what should happen. The popup opens, you finish SSO, the popup closes by itself, and the drawer refreshes to show the asset summary. You stay in Looker the whole time.
The usual cause is Chrome's third-party cookie blocking.
Error Messages
Popup was blocked. Please allow popups for this site and try again.Login window was closed. Please try again.Login timed out. Please try again.
You Might Be Asking
- Why does the DataHub sign-in popup in Looker stay open on the DataHub home page instead of closing?
- Why does the DataHub extension in Looker not see that I'm already logged in to DataHub?
- Does the DataHub Chrome extension in Looker need third-party cookies?
- How do I allow third-party cookies for Looker so the DataHub extension works?
Cause
The extension drawer is an iframe. It loads the /embed pages from your DataHub Cloud instance inside the Looker page. Chrome treats DataHub cookies inside that iframe as third-party cookies, because the page you are on is Looker.
When you click "Sign in with SSO" in the drawer, DataHub opens /sso from your DataHub instance in a 500 x 650 popup. The popup is a normal DataHub page, so SSO sets the DataHub actor cookie there. Meanwhile the drawer checks for that cookie once per second. When it finds the cookie, it closes the popup, marks you as logged in, and reloads the drawer.
If Chrome blocks third-party cookies, the drawer inside Looker can't read the cookie the popup set. Its requests to DataHub also go out without your session cookie. This causes the following:
- The popup finishes SSO and stays open on the DataHub app.
- If you close the popup yourself, the drawer shows
Login window was closed. Please try again. - If you leave the popup open, the drawer stops checking after 300 seconds and shows
Login timed out. Please try again.
This works the same way for every SSO identity provider.
Solution
-
Add a third-party cookie exception for Looker in Chrome. This allows third-party cookies only on your Looker site, not on every site.
- In Chrome, go to Settings > Privacy and security > Third-party cookies.
- Under the list of sites allowed to use third-party cookies, click Add.
- Enter
[*.]looker.com. - If your Looker instance uses a custom domain, add that domain too, for example
[*.]yourcompany.com. This is the same custom domain you entered under TOOL CONFIGURATIONS in the extension settings. See DataHub Cloud Chrome Extension. Add your Looker site here, not your DataHub domain. In this list, Chrome applies the exception to the site you have open, and that site is Looker. - Reload the Looker page and sign in from the DataHub drawer again.
If your organization manages Chrome with policies, the policy entry works the other way round. A single entry in the cookie allow list names the site that uses the cookies, so an entry for your Looker domain does not help. Ask your IT or browser management team to add your DataHub domain to the list. Or ask them to add a pair in the form
https://<your DataHub domain>,https://<your Looker domain>, which allows DataHub cookies only on Looker. A single DataHub entry allows its cookies on every top-level site, so the pair is the narrower choice. -
Optional test: allow third-party cookies for all sites. Use this only to confirm the cause. In Settings > Privacy and security > Third-party cookies, select Allow third-party cookies, reload Looker, and try to sign in. When you're done, turn blocking back on and use step 1.
-
If the drawer shows
Popup was blocked. Please allow popups for this site and try again., Chrome blocked the popup before it opened. Go to Settings > Privacy and security > Site settings > Pop-ups and redirects and allow pop-ups for your Looker site (for examplehttps://<your-instance>.looker.comor your custom Looker domain). Then sign in again. -
Check the result. Click "Sign in with SSO" in the drawer. A small popup opens. Finish SSO. The popup closes by itself, and the drawer shows the asset summary. You stay in Looker.
If sign-in still fails after you add the cookie and pop-up exceptions, contact DataHub Support.