What I am trying to implement is social reg/login for users in PHP. I need an auth0 api to resgister user social email. Then an social account should be created for that user. Another API to login this user. I have created normal db connection with ‘dbconnections/signup’ api. A similar api is what I looking for. This is for creating backend functionality for an app.
To register a User using a social Identity Provider you will use the /authorize
endpoint of our Authentication API.
To finish the User login process you would simply use the code
(found in redirect url resulting from the call to /authorize
) to make a call to oauth/token
. That will return a JWT which you can verify and parse to get some basic information about the User.
This documentation provides a great overview of this process: