WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#41639 closed enhancement (maybelater)

Add user authentication endpoints

Reported by: crosescu Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords:
Focuses: Cc:

Description

We are currently building a React-powered web app using the REST API and I need to add user authentication.
I was looking through the wp-calypso code and I noticed that they are using the user authentication endpoints below which is exactly what I need for our project:

`
https://wordpress.com/wp-login.php?action=login-endpoint
https://wordpress.com/wp-login.php?action=social-login-endpoint
https://wordpress.com/wp-login.php?action=logout-endpoint
`

The above endpoints are used in [wp-calypso](https://github.com/Automattic/wp-calypso/blob/master/client/state/login/actions.js)

Change History (1)

#1 @pento
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed
  • Version 4.8.1 deleted

Thank you for the feature request, @crosescu!

These endpoints are currently under development on WordPress.com, and will only be available for use by specific apps (hence client_id and client_secret being included in each request).

That said, these endpoints are different to what will likely end up in WordPress Core, as they contain a significant amount of WordPress.com specific code. There's been some discussion on what a Core solution would look like, the #core-passwords channel in WordPress Slack would be the best place to see where discussions are currently at.

Note: See TracTickets for help on using tickets.