# WebAuth /authorize opening up universal login page even if i passing connectionType in params

**URL:** <https://community.auth0.com/t/webauth-authorize-opening-up-universal-login-page-even-if-i-passing-connectiontype-in-params/55790>\
**Category:** Get Help\
**Tags:** login, auth0\
**Created:** [January 6, 2021, 3:58pm UTC](https://community.auth0.com/t/webauth-authorize-opening-up-universal-login-page-even-if-i-passing-connectiontype-in-params/55790 "2021-01-06T15:58:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssinghal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ssinghal/32/26715_2.png) [@ssinghal](https://community.auth0.com/u/ssinghal)\
**Post date:** [January 6, 2021, 3:58pm UTC](https://community.auth0.com/t/webauth-authorize-opening-up-universal-login-page-even-if-i-passing-connectiontype-in-params/55790/1 "2021-01-06T15:58:44Z")

</div>

I am using webAuth.authorize method for social authentication. below is my code for that.

```
webAuth.authorize(
          {
            connection: 'google-oauth2',
            scope: 'openid profile email',
            connection_scope: 'https://www.googleapis.com/auth/calendar.events',
            access_type: 'offline',
            approval_prompt: 'force',
          }
        )

```

It should open the google page but it opens the universal page first and when i cancel that it opens google page in second time.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 6, 2021, 11:34pm UTC](https://community.auth0.com/t/webauth-authorize-opening-up-universal-login-page-even-if-i-passing-connectiontype-in-params/55790/3 "2021-01-06T23:34:04Z")

</div>

Hi @ssinghal,

Welcome to the Community!

It looks like you are trying to pass some parameters to the IDP (google). Is passing them explicitly like that working? I think you need to use the strategy described [here](https://auth0.com/docs/connections/pass-parameters-to-idps).

I am wondering if these extra params are causing a problem.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 21, 2021, 11:34pm UTC](https://community.auth0.com/t/webauth-authorize-opening-up-universal-login-page-even-if-i-passing-connectiontype-in-params/55790/4 "2021-01-21T23:34:06Z")

</div>

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