# dbt-core opens multiple browser window for SSO Authentication, is there a way to prevent it ?

**URL:** <https://discourse.getdbt.com/t/dbt-core-opens-multiple-browser-window-for-sso-authentication-is-there-a-way-to-prevent-it/9469>\
**Category:** Help\
**Tags:** dbt-core\
**Created:** [August 8, 2023, 3:08pm UTC](https://discourse.getdbt.com/t/dbt-core-opens-multiple-browser-window-for-sso-authentication-is-there-a-way-to-prevent-it/9469 "2023-08-08T15:08:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dineshgs](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dineshgs](https://discourse.getdbt.com/u/dineshgs)\
**Post date:** [August 8, 2023, 3:08pm UTC](https://discourse.getdbt.com/t/dbt-core-opens-multiple-browser-window-for-sso-authentication-is-there-a-way-to-prevent-it/9469/1 "2023-08-08T15:08:58Z")

</div>

We are connecting dbt-core (MAC OS) with Snowflake via OKTA SSO thus we are using

authenticator: externalbrowser

in profiles.yml. When we run any dbt model, dbt opens up around 10 browser windows at a time to authenticate. Need a fix as we are not using password-based login.

I did set the snowflake ALLOW\_ID\_TOKEN=TRUE; and also followed the docs given below to install → [Managing/Using Federated Authentication | Snowflake Documentation](https://docs.snowflake.com/en/user-guide/admin-security-fed-auth-use#label-browser-based-sso-connection-caching)

The expectation is to get only one browser window should open, after successful authentication it should not prompt to authenticate for another 30 or 60 mins.

Nothing is helpful so far and the issue still persists, need some help to get this fixed.

We get the below message for around 10 times whenever a dbt run or compile is entered in the CLI

```auto
Initiating login request with your identity provider. A browser window should have opened for you to complete the login. If you can't see it, check existing browser windows, or your OS settings. Press CTRL+C to abort and try again...

```

---

<div class="post-metadata">

**Author:** ![gwenwindflower](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/gwenwindflower/32/1522_2.png) [@gwenwindflower](https://discourse.getdbt.com/u/gwenwindflower)\
**Post date:** [August 8, 2023, 4:01pm UTC](https://discourse.getdbt.com/t/dbt-core-opens-multiple-browser-window-for-sso-authentication-is-there-a-way-to-prevent-it/9469/2 "2023-08-08T16:01:27Z")

</div>

hey there! have you tried setting this as well [ALLOW\_MFA\_CACHING](https://docs.snowflake.com/en/sql-reference/parameters#allow-client-mfa-caching) ? might be a good place to start.

---

<div class="post-metadata">

**Author:** ![dineshgs](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dineshgs](https://discourse.getdbt.com/u/dineshgs)\
**Post date:** [August 10, 2023, 6:44pm UTC](https://discourse.getdbt.com/t/dbt-core-opens-multiple-browser-window-for-sso-authentication-is-there-a-way-to-prevent-it/9469/3 "2023-08-10T18:44:34Z")

</div>

Thanks @gwenwindflower

it worked after we `set allow_id_token = true;` It was strange that it opened multiple browser tabs a few hours after we set the allow\_id\_token to true. However, Thanks for the help !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [August 17, 2023, 6:45pm UTC](https://discourse.getdbt.com/t/dbt-core-opens-multiple-browser-window-for-sso-authentication-is-there-a-way-to-prevent-it/9469/4 "2023-08-17T18:45:21Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
