vendredi 13 mars 2015

Different oauth2 access_token json format java

I am currently learning oauth2 in java. I did simple installation in my pc with netbeans and later on opened java projects with oauth2 in it. But somehow after I deployed and run it on my browser, I got different json response like this :



{
"value": "0ecda889-0fab-43a0-894a-a0ed00f60c42",
"expiration": 1426311277693,
"tokenType": "bearer",
"refreshToken": {
"value": "b409f5c9-71c4-46bc-8f14-0af8b6bf5481",
"expiration": 1426396777631
},
"scope": ["read",
"trust",
"write"],
"additionalInformation": {

},
"expired": false,
"expiresIn": 899
}


when my expectations (when I saw my colleagues deployed and run it) like :



{
"access_token": "d84e04fa-af18-4dc4-8e9f-0d50a91d07f6",
"token_type": "bearer",
"refresh_token": "9db40368-b781-4c96-be52-48e97e745a82",
"expires_in": 899,
"scope": "read trust write"
}


Could someone give me explanation and how to repair this?


Thank you.


Aucun commentaire:

Enregistrer un commentaire