-
Notifications
You must be signed in to change notification settings - Fork 70
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
How to set up headers for a GET or POST authenticated request? #11
Comments
Let me dig into this, it should work as you have it. |
Thanks for the reply, you are indeed correct. I am not sure why it wasn't working before, but I can just add that header and it works in sabisu. For curl you can do this: |
Nice!, I'll be addressing may of this issues on the book as well as on the gem! Thanks! |
This is what I use for the POST method. curl -X POST -i -H "Content-type:application/json" http://localhost:3000/api/sessions -d ' |
@tknazn and are they working correctly? |
Yupe - it works and returns with an authorization code. |
This is more of a question out of ignorance, but if I have a before_action :authenticate_with_token! on this project, can someone tell me how I'd properly set up the headers in sabisu or curl to have GET or POST request that works?
I have tried the header:
Authorization : key
And that doesn't seem to be enough. Thanks so much!
The text was updated successfully, but these errors were encountered: