Token Validation

To validate and return the user profile from Ayla to the IDP, refer to the following example:

Request Example:

curl 'https\://idp-emulationurl/api/v1/authenticate?token=<token>&\<context_param1_name>=\<context_param1_value>' -H  
'Authorization HMAC-SHA256 Credential=ilya-app/user/sso/v1, SignedHeaders=x-aylaorigin-host;x-sso-date,  
Signature=2926bf66da2bcc889d56efdgdfg02641708247b4ffa2f49eb5ac753b4a68f2999' -H 'X-SSO-DATE: 20151123T224515Z'

Response Example: Code: 200

{  
     "response": {  
     "status": 1,  
     "message": "token valid",  
         "user": {  
         "uuid": "",  
         "email": "",  
         "phone": "",  
         "firstname": "",  
         "lastname": "",  
         "nickname": ""  
     }  
     }  
}

NOTE: It is mandatory to provide uuid, email, firstname, and lastname parameters.