WordPress plugin
Not done yet. Taking notes.
To do
- Detect login, and send to accounts RP frontend
- Detect return from RP with two GET parms state, code to get Bearer token
- How to find user, Create one if inexistent
- How to start a session
Tests
On login attempt, send to RP
add_action( 'login_head', 'prout' );
function prout( )
{
header('Location: https://accounts.webplatform.org/oauth/signin');
}