...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
General Information
...
Service | API | Method | Data Models | Workflow |
---|---|---|---|---|
oauth | /passport/validate/:strategy | GET | N/A | N/A |
Description
To validate a passport login. this should be the callback of your application
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
strategy | Path | YES | String | N/A | "facebook", "google", "twitter", "github", "azure" |
Output
...
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "firstName": "%firstName%", "lastName": "%lastName%", "email": "%email%", "mode": "%strategy%", "access": { "token_type": "bearer", "access_token": "%oauth_access_token_value%", "expires_in": 3600, "refresh_token": "%oauth_refresh_token_value%" } } |
Invalid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "result":false, "errors":{ "codes":[420], "details":[ { "code":420, "message":"Missing service key configuration for third party integration" } ] } } |
...