{auth_base_url}, check it out here - Get started with base url.
Note : Signup and Login authentication methods are handled under this single endpoint. If the user logging with a provider does not exists, then new user is created or else existing user details are returned as response
Step - 1 : Setup Social Connection
To setup and getconnection_name of your preferrred social connection, check it our here - Setup your social connection
CALLBACK URLMake sure to configure the below given call back URL in the third party service
https://authn.zeromagic.cloud/oauth/callback/Step - 2 : GET Authorisation Page URL
You will need to redirect the user to preferred social provider page to grant access to your application. You can get this authorize url from the below endpoint. On opening theauthorize_url link, it will display a page asking the user to approve or deny access to your application. However, if you provide an invalid config credentials or redirect_uri then the user will instead see an error page.
Endpoint
Endpoint
Header
Header
App key of the particular project
Body Data
Body Data
POST the data in the application/json format.
Unique connection_name of your social method
Response Body Data
Response Body Data
Example
Request
Response
authorize_url from your client applicantion end and it will be prompted to user consent page.
Step - 3 : User Success Response
Client Redirect URIIt is necessary to add your client application in oauth redirect uri under project settings. The success response is appended to your client application redirect uri as query params. To add oauth redirect uri, check it our here - Add OAuth Redirect uri
Query Params
Query Params
{client_oauth_redirect_uri}?{success_params}
For example, if your client_oauth_redirect_uri is https://client.zeromagic.cloud/ then success response will be in the format of
Success Response Example
Success Response
Error Response Example
The error message is also appended to the redirect uri as query params.The error message will be in the format ofhttps://client.zeromagic.cloud/?error=&message=&code=&state=
Error Response