This project is not covered by Drupal’s security advisory policy.

Social auth google api

This module provide a endpoint to login to drupal by google's access_token
And this module use the same logic of social_auth_google

Dependencies:

  1. social_auth_google:^2.0
  2. social_auth_decoupled:^2.0

Endpoint

Url:

`/user/login/google?_format=json` [POST]

Post body:

{
    "access_token": "ya29.ImC2BzNJSH5ibv3bzX8HCVC1W-9xDxduGltC_S9GWqsTsPQAKXgjqryA7w8ojD2eckUoPjsdGlZpSumtBfg6H3ARVx-igGoK4aBEbM6v8qoG3NHrOOCesd9Kcsf8EaCcOPD"
}

Return:

{
    "current_user": {
        "uid": "104",
        "name": "lawxen Liu"
    },
    "csrf_token": "7PH3oF4ATGrTT0Jh8PgbHHLQavS3p9NlJmP3clAfV-A",
    "logout_token": "NNDK1qT4qh4NRTEh5n1eWIVx025cL6QfMvCXjwo6Zk4"
}

Project information

Releases