# Lock 10 and API Authorization

**URL:** <https://community.auth0.com/t/lock-10-and-api-authorization/6137>\
**Category:** Get Help\
**Tags:** api, lock\
**Created:** [April 6, 2017, 10:05pm UTC](https://community.auth0.com/t/lock-10-and-api-authorization/6137 "2017-04-06T22:05:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bragma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bragma/32/13310_2.png) [@bragma](https://community.auth0.com/u/bragma)\
**Post date:** [April 6, 2017, 10:05pm UTC](https://community.auth0.com/t/lock-10-and-api-authorization/6137/1 "2017-04-06T22:05:57Z")

</div>

I’m trying to force Lock to use the /authorize endpoint with an API declared in the dashboard section, specifying its audience, but can’t make it work, i.e. the resulting token’s audience and signature credentials are those of the client. Is this scenario supported or only auth0.js supports it?  
Thanks!

---

<div class="post-metadata">

**Author:** ![eatfitdev](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@eatfitdev](https://community.auth0.com/u/eatfitdev)\
**Post date:** [April 7, 2017, 3:58am UTC](https://community.auth0.com/t/lock-10-and-api-authorization/6137/2 "2017-04-07T03:58:38Z")

</div>

How are you forcing the lock to use `/authorize` endpoint?  
Is there a configuration for that?

I am managed to get the access token using the `lock.on('authenticated')` to call the `/authorize` endpoint & then extracting it from the response on the callback.

---

<div class="post-metadata">

**Author:** ![bragma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bragma/32/13310_2.png) [@bragma](https://community.auth0.com/u/bragma)\
**Post date:** [April 7, 2017, 4:41pm UTC](https://community.auth0.com/t/lock-10-and-api-authorization/6137/3 "2017-04-07T16:41:40Z")

</div>

In fact it is not working. It seems to use /authorize only after repeating a login, asking me if I am the same user. But I suspect Lock does not work with API Authorization at all…

---

<div class="post-metadata">

**Author:** ![Matthew\_Hartz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matthew_hartz/32/11896_2.png) [@Matthew\_Hartz](https://community.auth0.com/u/Matthew_Hartz)\
**Post date:** [May 5, 2017, 1:02pm UTC](https://community.auth0.com/t/lock-10-and-api-authorization/6137/4 "2017-05-05T13:02:55Z")

</div>

Did you figure this out?

---

<div class="post-metadata">

**Author:** ![bragma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bragma/32/13310_2.png) [@bragma](https://community.auth0.com/u/bragma)\
**Post date:** [May 5, 2017, 2:54pm UTC](https://community.auth0.com/t/lock-10-and-api-authorization/6137/5 "2017-05-05T14:54:32Z")

</div>

No. I’ve understood that /authorize does not make any authorization at all, it simply redirects the user agent to a login page depending on its parameters. So Lock is a bit out of context here. At the moment I am using auth0.js sdk which redirects my browser to a hosted login page (on Auth0). That page uses lock, but it does not use /authorize itself again, what it does depends on the connection used.

---

<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/lock-10-and-api-authorization/6137/6 "2018-03-02T05:53:08Z")

</div>


