auth0 / Lock.swift

A Swift & iOS framework to authenticate using Auth0 and with a Native Look & Feel
https://auth0.com/lock
MIT License
260 stars 108 forks source link

Grant type 'http://auth0.com/oauth/legacy/grant-type/ro' not allowed for the client." #451

Closed ghost closed 7 years ago

ghost commented 7 years ago

I am looking at 10 different docs and support cases and everything is so confusing when it comes to Auth0 & Lock. I need to do a simple passwordless authentication and though SMS but I have no success getting it to work. What should be a simple task, took 5 hours and still no results. I created my client few days ago so I assume I am not considered a legacy client.

My account is in trial phase but nowhere it has been mentioned that this could be an issue.

image

cocojoe commented 7 years ago

Hi @mosn

Sorry to hear this, you are correct you are not a legacy user. The README does mention it is not available https://github.com/auth0/Lock.swift#lock-passwordless. However, I can understand the frustration, this functionality is going through a transition period, so at this point in time the user journey may be sub optimal.

The recommend way is to use the Auth0.swift SDK Getting Started This will utilise the Hosted Login Page, in your dashboard you can change the Default Template to Lock (Passwordless) and configure from there.

It would be great if you could point out the docs you didn't feel were helpful or could have explained this better and I'll ensure these are updated to provide an optimal user experience 😄

Thanks

ghost commented 7 years ago

Hi @cocojoe

I can understand that this flow works with hosted login page but I need to integrate passwordless SMS authentication on my custom native UI and cannot use Hosted login. Is Lock currently able to satisfy this requirement ?

cocojoe commented 7 years ago

Unfortunately at this time there is no way to build a custom native UI for passwordless for new tenants.

ghost commented 7 years ago

It would be great if you could point out the docs you didn't feel were helpful or could have explained this better and I'll ensure these are updated to provide an optimal user experience

How about starting off by adding this in the documentation ;)

Unfortunately at this time there is no way to build a custom native UI for passwordless for new tenants.
aaguiarz commented 7 years ago

Hi @mosn, the link that @cocojoe pointed to actually intends to convey that it will not work without the Legacy Grant enabled, which new Auth0 accounts do not have, but it's probably not clear enough.

We plan to change it to something like:

The Passwordless feature requires your client to have the Resource Owner Legacy Grant Type enabled. This implies it WILL NOT WORK if your Auth0 tenant was created after Jun 8th 2017. You will need to use the iOS Swift SDK with a Hosted Login Page (https://github.com/auth0/Auth0.swift#authentication-with-hosted-login-page-ios-only) if you want to use Passwordless in a iOS application.

Do you think this would have helped to make it more clear?

Thanks

ghost commented 7 years ago

Hi @aaguiarz,

Apologies for the late response, new documentation reads more clear and is easily understandable.

Thanks again