Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accessing Profile Data

HI ,

 Please help on this...

 

Hi ,

Getting access token , but when try to access the profile data ...it is throwing

 

03-12 01:04:48.690: E/JSONStr(14476): {"error":"invalid_grant","error_description":"authentication failure"}n

 

 

03-12 01:04:47.425: E/JSONStr(14476): {"access_token":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTc3MDg3NDksInNjb3BlcyI6IndociIsInN1YiI6IjNRQk1IQiIsImF1ZCI6IjIyOVczViIsImlzcyI6IkZpdGJpdCIsInR5cCI6ImFjY2Vzc190b2tlbiIsImlhdCI6MTQ1NzcwNTE0OX0.ZsrOE7N5B32yXEpsquQ6uML0QE1-L79Ro3TNyB47x1c","expires_in":3600,"refresh_token":"0a9afc3ac9e203e1a951dbc1758b837fd19bc25ac45578043698074fd949f1a1","scope":"heartrate","token_type":"Bearer","user_id":"3QBMHB"}n
03-12 01:04:47.960: D/dalvikvm(14476): GC_FOR_ALLOC freed 1738K, 30% free 6756K/9584K, paused 23ms, total 23ms
03-12 01:04:48.690: E/JSONStr(14476): {"error":"invalid_grant","error_description":"authentication failure"}n
03-12 01:04:48.695: D/Token Access(14476): eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NTc3MDg3NDksInNjb3BlcyI6IndociIsInN1YiI6IjNRQk1IQiIsImF1ZCI6IjIyOVczViIsImlzcyI6IkZpdGJpdCIsInR5cCI6ImFjY2Vzc190b2tlbiIsImlhdCI6MTQ1NzcwNTE0OX0.ZsrOE7N5B32yXEpsquQ6uML0QE1-L79Ro3TNyB47x1c
03-12 01:04:48.695: D/Expire(14476): 3600
03-12 01:04:48.695: D/Refresh(14476): 0a9afc3ac9e203e1a951dbc1758b837fd19bc25ac45578043698074fd949f1a1
03-12 01:04:49.670: D/AndroidRuntime(14476): Shutting down VM

 

Moderator edit: title for clarity

Best Answer
0 Votes
1 REPLY 1

These logs are not useful to debugging your application. The best way for us to help you is by examining the full HTTP request and response. You can use Runscope Traffic Inspector to do this. Be sure to obfuscate your client secret and refresh tokens when posting publicly.

 

These logs seem to suggest that your app obtained an access token via the Authorization Code Grant Flow, but then your app tried to do another authorization code request.

Best Answer
0 Votes