Using REST API with application passwords not working with Pods fields (unless public) #7340
Labels
Component: REST API
Issues related to the Pods REST API endpoints or integration with existing WP REST API endpoints
Type: Bug
Milestone
Description
When you enable REST API but set the fields are "private" (requires authentication) they will not show when using application passwords.
After testing I've found that during REST initialization (when Pods registers it's fields) the function
is_user_logged_in()
does not work for application passwords.Only in the
get_callback
of a field will the application password user be authenticated. However, at that point the fields is already disabled.Version
3.2.6
Testing Instructions
See description and it should be clear!
Add a field, enable REST API but only accessible for logged in users, test a call using an application password through (for example) Postman.
Screenshots / Screencast
No response
Possible Workaround
Non that I've found, other than enabling the fields publicly.
Site Health Information
No response
Pods Package
No response
The text was updated successfully, but these errors were encountered: