DNOA using OAuth 2 for getting infos from google

23 views
Skip to first unread message

Fred

unread,
Jul 22, 2012, 6:23:00 PM7/22/12
to dotnet...@googlegroups.com
Hi,
 
I'm trying to access Infos from a google-account using DNOA and OAuth 2. I managed to receive an access_code via my callback-url but when I try to get a token for it using
ProcessUserAuthorization Google responds with a 400 Bat Request.
 
Below I place the info from the log.
 
What's wrong here?


Wishes,

Fred

 

2012-07-22 23:59:30,841 (GMT+2) [8] INFO  DotNetOpenAuth.Messaging.Channel - Prepared outgoing AccessTokenAuthorizationCodeRequestC (2.0) message for https://accounts.google.com/o/oauth2/token:
 code: 4/1d8s68ygIOBtte-Furt6QZPT1AFI.sqjLPoQNiZIfsNf4jSVKMpaseHphcQI
 redirect_uri: https://localhost/RP/Secure/OAuth
 grant_type: authorization_code

2012-07-22 23:59:30,841 (GMT+2) [8] DEBUG DotNetOpenAuth.Messaging.Channel - Sending AccessTokenAuthorizationCodeRequestC request.
2012-07-22 23:59:30,841 (GMT+2) [8] DEBUG DotNetOpenAuth.Messaging.Channel - Sending AccessTokenAuthorizationCodeRequestC request.
2012-07-22 23:59:31,512 (GMT+2) [8] DEBUG DotNetOpenAuth.Http - HTTP POST https://accounts.google.com/o/oauth2/token
2012-07-22 23:59:31,512 (GMT+2) [8] DEBUG DotNetOpenAuth.Http - HTTP POST https://accounts.google.com/o/oauth2/token
2012-07-22 23:59:32,465 (GMT+2) [8] ERROR DotNetOpenAuth.Http - WebException from https://accounts.google.com/o/oauth2/token:
{
  "error" : "invalid_request"
}

 
 

Fred

unread,
Jul 23, 2012, 7:26:13 AM7/23/12
to dotnet...@googlegroups.com
Any ideas?
 
Is the current implementation of DotNetOpenAuth compatible with google's implementation or is my problem due to the fact, that OAuth 2 isn't final yet ?
 
Wishes,
Manfred
Reply all
Reply to author
Forward
0 new messages