-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `provider' for #<User:0x007f49fd5da2e8> #257
Comments
Try passing "email" as the provider. |
I am seeing this error too simply trying to run rspec. First it was the uid, then it's the provider. Can we get it made clear in the documentation that this gem doesn't actually work "out of the box". Maybe we could just provide the necessary steps to get it to work in the setup instructions. |
Here is what I did, and it seems to have at least got the initial specs running. edited below: making it a little more palatable
|
@jancel that done the halfjob, Now I can create users from admin panel. But how I still getting the same error while trying to signup to POST the JSON. Is that JSON schema is correct? |
I haven't plugged my front end in yet but will be working on that this On Friday, May 29, 2015, user12121212 [email protected] wrote:
Jeff Ancel (314) 703-8829 - Main |
@jancel That would be great! |
I tried to POST something like this.
But I'm getting an error like this.
|
You should read the error message CAREFULLY, the answer is in it :) |
Haha. Nice. So you need to send in a confirm_success_url, love the error On Fri, May 29, 2015 at 3:34 PM, Nicolas Besnard [email protected]
Jeff Ancel (314) 703-8829 - Main |
@nicolas-besnard got it :) I just disabled the confirmable method and I'm getting succes response. here is the success response.
and here is the generated token in DB. How can I add those tokens into the responses? I believe I have to send the token while accessing the protected methods. Sorry, I haven't experimented with authentication systems. |
You should read the documentation On Sat, May 30, 2015 at 3:03 PM user12121212 [email protected]
|
@nicolas-besnard I was little late to read the concept portion of the documentation :D Basically, every response will have token which can be user for the next request. How can we handle that situation in Android/iOS app? any easy way? |
After each request, you store the new access-token, client and uid. As I On Sat, May 30, 2015 at 3:24 PM user12121212 [email protected]
|
I'm trying to setup the devise token auth for a rails application. I installed the gem and configured the roots and run those migrations. But I'm getting
undefined method
provider' for #User:0x007f49fd5da2e8` error while creating a user.and the route.rb is like this
schema
User model
The POST request I used to signup.
and the response is like this.
What will be the issue behind that error, how can I solve it?
The text was updated successfully, but these errors were encountered: