# How to fetch access token for API with passwordless connection on Android client

**URL:** <https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522>\
**Category:** Get Help\
**Tags:** android, api-authorization, passwordless, lock\
**Created:** [May 7, 2017, 9:51pm UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522 "2017-05-07T21:51:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhay.saraf](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abhay.saraf](https://community.auth0.com/u/abhay.saraf)\
**Post date:** [May 7, 2017, 9:51pm UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/1 "2017-05-07T21:51:15Z")

</div>

My setup is the following

- Auth0 account is US based
- An Android app is configured as a native client
- A REST based API is configured with only one scope `api` in dashboard
- Only passwordless connections, email and SMS, are enabled
- SMS connection is setup with a Twilio account

I have successfully used `Lock.Android` package to create a `PasswordlessLockActivity`, authenticate using SMS/Email and receive the `id_token` and `refresh_token` for the same.

However, I have tried a bunch of different things to retrieve an `access_token` for my configured API.

I have tried the following

- My successful `PasswordlessLock` Activity had audience as API with appropriate scope but only Authentication happened, no Authorization for API or access token.
- Tried `LockActivity` to fetch token but getting an error which says

> Can’t resolve your request  
> There was an unexpected error while resolving the login box  
> configuration, please contact support

- Created a regular web app client and redirected to `/authorize` endpoint. The page showed the following error message (after correctly redirecting to login page with my web app’s name)

> Something went wrong. Please contact  
> technical support.

---

<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 8, 2017, 5:12pm UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/2 "2017-05-08T17:12:55Z")

</div>

According to the documentation, **at this time** , the use of passwordless authentication in conjunction with API authorization features is not possible.

> Auth0 currently does not support an OIDC-conformant passwordless authentication mechanism. OIDC-conformant clients will not be able to use the new authentication pipeline **or request API access tokens**.
> 
> We plan on implementing OIDC-conformant passwordless authentication in future releases.

---

<div class="post-metadata">

**Author:** ![abhay.saraf](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abhay.saraf](https://community.auth0.com/u/abhay.saraf)\
**Post date:** [May 8, 2017, 5:30pm UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/3 "2017-05-08T17:30:32Z")

</div>

Thank you @jmangelo

I hope to see this feature in the future. My current option seem to be to use the id\_token to protect the API since I don’t care for scopes in the immediate future.

---

<div class="post-metadata">

**Author:** ![abhay.saraf](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@abhay.saraf](https://community.auth0.com/u/abhay.saraf)\
**Post date:** [May 8, 2017, 5:30pm UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/4 "2017-05-08T17:30:32Z")

</div>

Thank you @jmangelo

I hope to see this feature in the future. My current option seem to be to use the id\_token to protect the API since I don’t care for scopes in the immediate future.

---

<div class="post-metadata">

**Author:** ![andrem](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andrem](https://community.auth0.com/u/andrem)\
**Post date:** [August 8, 2017, 2:29am UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/5 "2017-08-08T02:29:09Z")

</div>

3 months later - is there any clarification on “future releases” timeframe from Auth0?

---

<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:** [August 9, 2017, 10:03pm UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/6 "2017-08-09T22:03:40Z")

</div>

I’m afraid that no, there’s not yet a definitive timeline and me trying to provide one would just lead to either the feature being released a bit earlier then what I mentioned and no one caring about my failed prediction or it only being released after my prediction and everyone complaining about it. We do understand that this is something with demand, but as mentioned at this time there’s still no concrete date.

---

<div class="post-metadata">

**Author:** ![brad2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brad2/32/8925_2.png) [@brad2](https://community.auth0.com/u/brad2)\
**Post date:** [August 26, 2017, 5:25am UTC](https://community.auth0.com/t/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/7 "2017-08-26T05:25:53Z")

</div>

So… you cannot use passwordless alone to be able to access API’s for now?

---

<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/how-to-fetch-access-token-for-api-with-passwordless-connection-on-android-client/6522/8 "2018-03-02T05:53:45Z")

</div>


