My team is attempting to authenticate and create Auth0 sessions for users we have already authenticated via the Management API. Once we retrieve the user’s access_token and id_token, we are looking to verify and then sign those users into our WordPress sites via the PHP SDK.
So far we have been able to verify and validate the tokens received from the Management API but we haven’t found any information regarding using the SDK to actually sign-in the user programmatically on the backend. Is this possible to achieve?
Background:
- We set users up with a device for which we create a new account for.
- We automatically retrieve the user’s access_token and id_token from the Management API and pass those values to the device
- We then set a cookie on the device’s web browser which is validated
- We then want to automatically log the user into the site using the SDK so that SSO works across all the sites we have setup with the Auth0 WordPress plugin