# oidcConformant breaks redirectUrl?

**URL:** <https://community.auth0.com/t/oidcconformant-breaks-redirecturl/6466>\
**Category:** Get Help\
**Tags:** auth0-lock, oidc-conformant, audience, lock\
**Created:** [May 4, 2017, 12:44am UTC](https://community.auth0.com/t/oidcconformant-breaks-redirecturl/6466 "2017-05-04T00:44:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benzhangniu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/benzhangniu/32/7142_2.png) [@benzhangniu](https://community.auth0.com/u/benzhangniu)\
**Post date:** [May 4, 2017, 12:44am UTC](https://community.auth0.com/t/oidcconformant-breaks-redirecturl/6466/1 "2017-05-04T00:44:09Z")

</div>

I’m trying to retrieve a user’s accessToken with the correct audience using the Auth0 Lock. My code is as follows:

```
import Auth0Lock from 'auth0-lock';

new Auth0Lock(clientId, domain, {
  oidcConformant: true,
  auth: {
    redirectUrl: `${ROOT_URL}/auth/signed-in`,
    responseMode: 'form_post',
    responseType: 'token',
    audience,
  },
  params: {
    scope: 'openid',
  },
}).show();

```

When `oidcConformant` is true, the Lock seems to disregard the `redirectUrl` and `responseMode` fields. Instead, it shows me “Thanks for logging in.” in the modal. Is this an intended behaviour or is this a bug?  
Is there another way for me to get the user’s full access token while hiding it from the web client (considering we can only specify an `auth.audience` if we set `oidcConformant` to true)?

---

<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:** [May 4, 2017, 5:00pm UTC](https://community.auth0.com/t/oidcconformant-breaks-redirecturl/6466/2 "2017-05-04T17:00:32Z")

</div>

To my knowledge the `oidcConformant` flag in Lock is not yet formally documented and as such you should consider that it can change (even breaking changes) without any type of notification; in summary, unless you’re only experimenting this may not be your best choice.

The [Auth0.js v8 library](https://auth0.com/docs/libraries/auth0js/v8#webauth-authorize-) already has full support for [API authorization](https://auth0.com/docs/api-auth) features (aka `audience` parameter) and, for now, should be your preferred choice when using it in web client applications.

Additionally, if you don’t want to expose the tokens to the client-side part of your application (aka browser) then you may also want to consider using the [authorization code grant](https://auth0.com/docs/api-auth/grant/authorization-code) instead.

---

<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:53am UTC](https://community.auth0.com/t/oidcconformant-breaks-redirecturl/6466/3 "2018-03-02T05:53:40Z")

</div>


