Check the documentation regarding that at http://psa.matiasaguirre.net/docs/use_cases.html#signup-by-oauth-access-token https://python-social-auth.readthedocs.io/en/latest/use_cases.html#signup-by-oauth-access-token. There you will find a code snippet that will simplify your work, take that snippet as a template where you fill the details related to your project (like the return data, etc).
Edit: updated documentation link.