users
v1
POST /api/v1/users/google/
Changed onAuthenticate user (register first if the profile doesn't exist) via Google in CLM.
The login algorithm is next:
- Redirect to google auth page https://accounts.google.com/o/oauth2/v2/auth with correct client_id, redirect_url;
- After google auth user will be redirected to callback url;
- Pass the code from query params to this endpoint.
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"code": "code"
}Response
Example response
{
"access_token": "access_token",
"code": "code",
"id_token": "id_token"
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking