# Auth0-lock v11.2 sso is not working

**URL:** <https://community.auth0.com/t/auth0-lock-v11-2-sso-is-not-working/9564>\
**Category:** Get Help\
**Tags:** sso-integration, sso-integrations, auth-lock, sso\
**Created:** [February 22, 2018, 10:34pm UTC](https://community.auth0.com/t/auth0-lock-v11-2-sso-is-not-working/9564 "2018-02-22T22:34:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitriy\_nevzorov](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dmitriy_nevzorov/32/5892_2.png) [@dmitriy\_nevzorov](https://community.auth0.com/u/dmitriy_nevzorov)\
**Post date:** [February 22, 2018, 10:34pm UTC](https://community.auth0.com/t/auth0-lock-v11-2-sso-is-not-working/9564/1 "2018-02-22T22:34:47Z")

</div>

auth0-lock calls `/authorize`endpoint to fetch sso data.  
Although in lock config I specify the `scope: 'openid'`

```
const lock = new Auth0LockPasswordless(
      APP_CONFIG.auth0.clientID,
      APP_CONFIG.auth0.clientDomain,
      {
        container: 'lock-container',
        auth: {
          autoParseHash: false,
          redirect: false,
          params: {scope: 'openid'}
        }
      }
    );
    lock.show();

```

I see the request

```
https://moonmail.auth0.com/authorize?client_id=yxaHRVmAlZvPS9mwSbwzmy9Y24h8mKcV&response_type=token id_token&redirect_uri=http://localhost:3000/signin&scope=openid profile email&state=Qi9dIm2Xas-XoChMi~cTM1JY-MMinY-Y&nonce=u9hteNLakSoxy-O31FcHSfCqzqUBLjfl&response_mode=web_message&prompt=none&auth0Client=eyJuYW1lIjoibG9jay5qcyIsInZlcnNpb24iOiIxMS4yLjMiLCJsaWJfdmVyc2lvbiI6IjkuMi4zIn0=

```

**scope=openid profile email**  
It results in an error:

```
{  
   "error":"invalid_request",
   "error_description":"The generated token is too large. Try with more specific scopes.",
   "error_uri":"https://auth0.com/docs/scopes",
   "state":"Qi9dIm2Xas-XoChMi~cTM1JY-MMinY-Y"
}

```

How can I change the scope in the sso request?

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [February 24, 2018, 1:01am UTC](https://community.auth0.com/t/auth0-lock-v11-2-sso-is-not-working/9564/2 "2018-02-24T01:01:03Z")

</div>

Can you check if your client is OIDC conformant? You can check it in the [client’s settings in the dashboard](https://manage.auth0.com/#/clients), selecting your client and then scrolling down and clicking **Show Advanced Settings**. Under the OAuth tab there is a OIDC Conformant switch. In older non-OIDC Conformant clients, the id token will contain all the user profile, which may trigger this `The generated token is too large.` error. You can try enabling OIDC for your client, which will only return the standard claims back in the token and will not trigger this error.

You can read more about it here:   
  
[Applications in Auth0](https://auth0.com/docs/api-auth/tutorials/adoption/oidc-conformant)   
  
[ID Tokens](https://auth0.com/docs/tokens/id-token#control-the-contents-of-an-id-token)   
  
[OpenID Connect Scopes](https://auth0.com/docs/api-auth/tutorials/adoption/scope-custom-claims)

---

<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:** [August 27, 2019, 10:41am UTC](https://community.auth0.com/t/auth0-lock-v11-2-sso-is-not-working/9564/3 "2019-08-27T10:41:57Z")

</div>

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