-
Notifications
You must be signed in to change notification settings - Fork 137
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
Using inside of a Rails API #55
Comments
I keep getting a scope error now but I don't see anywhere for me to set the scope. |
I agree, there needs to be more documentation on this one. I had to search through the code to get something working. I had success with something similar to this:
Of course, you could start with params[:email], but you may want to do some other checks first. After, you can follow the v2 link to their API console and generate your token there with the specific tasks you want to accomplish. There's more methods like signup in the endpoints file. Otherwise, you can build your own client and use the endpoints provided and accessible by the token you generate. |
@brandonmikeska @mrrobby Where did you guys end up with this? I am trying to implement it within a rails-api set up and unclear on some of the details. Is there a gist/repo that anyone could share? |
@oyeanuj I got a working example but stopped using rails all together and just went with Firebase. If I find time I will try to create a small repo or gists on what I did. It's not too complicated but basically I created a base controller that would check for the token and inherited the base controller on any controller than needed authentication. I also created an @auth0 object that was available so I didn't have to set it up every time in an action. Pretty basic stuff. Is that what you are looking for? The only thing is that this was awhile ago and I don't know if it still works with the current project API. |
@brandonmikeska Thank you, that was the kind of information I was looking for! If you can provide any sort of gists for what you described, that would be super helpful and make it much easier to start! @ignaciojonas - any chance that this could be part of the official documentation? |
@ignaciojonas Thanks for the response. The tutorial on that link doesn't seem to work - https://auth0.com/docs/quickstart/webapp/rails/02-custom-login. Is there an updated link for this? |
@ignaciojonas thanks! not to extend this thread further, but are there any rails one with an example of password-less magic link authentication? |
Just FYI for anyone looking ... we have a quickstart for a Ruby API: https://auth0.com/docs/quickstart/backend/ruby ... and one for Rails: |
Is there an example of this being used inside of a Rails API project? All of the rails api projects just have authenticating the current user.
The text was updated successfully, but these errors were encountered: