Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

General Information


ServiceAPIMethodData ModelsWorkflow
oauth/passport/validate/:strategyGETN/AN/A

Description 

To validate a passport login. this should be the callback of your application

Input


Type: application/json
NameSourceMandatoryTypeSpecial FormatDescription
strategyPathYESStringN/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

Valid Response Sample
{
	"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

Error Response Sample
{
    "result":false,
    "errors":{
        "codes":[420],
        "details":[
            {
                "code":420,
                "message":"Missing service key configuration for third party integration"
            }
        ]
    }
}


  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.