-
Notifications
You must be signed in to change notification settings - Fork 191
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
authentication #361
Comments
I've been trying to use Basic-Auth. I always get an invalid user no matter what credentials I use, including the credentials I use to successfully login to my site for which I am an administrator! Something is very broken with the auth here at least when making a media request. I even tried setting |
Not sure if it's relevant to your issue but I just found out why JWT wasn't working for my app sometimes. If I've got an open session in the WordPress admin, cookies are sent with the WpApi auth request for the user in that session, and that conflicts with the |
@samdoj, @breadadams +1. I create Issue #400 |
There's a couple different issues here, it seems. #400 should relate to situations where you are authenticating against the REST API from a browser session with an active login cookie; this is something we should probably patch upstream in WordPress. If you're trying to use JWT or Basic Auth from a native application (not a webapp running in the browser), then that may represent a bug in this library rather than a limitation of WP itself. If you can share more information about how you're trying to authenticate from your native app, I may be able to help more. To answer the question as posed:
|
The issues described in comments around authentication problems are now tracked in separate tickets; thank you all for opening those. The comment above answers the issue as described, so I'm going to close out this ticket. |
hi
Which method is best for authenticate, especially in react native applications?
Cookie Authentication
Basic-Auth
OAuth
JWT
The text was updated successfully, but these errors were encountered: