# Lock in popup mode, audience and oidcConformant

**URL:** <https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368>\
**Category:** Get Help\
**Tags:** popup, audience, lock\
**Created:** [October 3, 2017, 1:27am UTC](https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368 "2017-10-03T01:27:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![etienne.deboursetty](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@etienne.deboursetty](https://community.auth0.com/u/etienne.deboursetty)\
**Post date:** [October 3, 2017, 1:27am UTC](https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368/1 "2017-10-03T01:27:50Z")

</div>

It seems there is something wrong in the way I do things.

I have the following code:

```
var lock = new Auth0Lock('secret','domain',{
    oidcConformant: true,
    auth: {
        redirect: false,
        responseType: 'token',
        params: {
            scope: 'openid profile email name'
        },
        audience: 'myaudience'
    }
});

```

And when I try it on my website, the popup shows up, but instead of coming back to my page once the authentication is finish, it redirects the popup to the original page…

It used to work fine without the audience and without to oidcConformant, but then the token wouldn’t be recognized by my API.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 3, 2017, 6:59pm UTC](https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368/2 "2017-10-03T18:59:02Z")

</div>

What you experienced is a limitation of the library, in particular, when `oidcConformant` is enabled (which is required for the use of `audience`) the popup mode is not supported.

The above is per the information available in the Lock repository, in particular, within the `oidcConformant` [section](https://github.com/auth0/lock#oidc-conformant-mode). In addition, per this [issue](https://github.com/auth0/lock/issues/1128), it seems this is not intended to be supported.

---

<div class="post-metadata">

**Author:** ![etienne.deboursetty](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@etienne.deboursetty](https://community.auth0.com/u/etienne.deboursetty)\
**Post date:** [October 3, 2017, 7:24pm UTC](https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368/3 "2017-10-03T19:24:20Z")

</div>

@jmangelo : ok thanks. Since I posted this I switched to Auth.js, which does support audience and popup mode.

---

<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:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368/4 "2018-03-02T05:56:47Z")

</div>


