Closed GoogleCodeExporter closed 9 years ago
adding a new flag, -ap fixes the problem. Here is the diff from the original:
22,23d21
< authURL = flag.String("auth",
"https://accounts.google.com/o/oauth2/auth", "Authorization URL")
< tokenURL = flag.String("token",
"https://accounts.google.com/o/oauth2/token", "Token URL")
25d22
< redirectURL = flag.String("redirect", "http://localhost/", "Redirect URL")
29d25
< authparam = flag.String("ap", "", "Authorization parameter")
50a47
>
56,58c53,55
< AuthURL: *authURL,
< TokenURL: *tokenURL,
< RedirectURL: *redirectURL,
---
> AuthURL: "https://accounts.google.com/o/oauth2/auth",
> TokenURL: "https://accounts.google.com/o/oauth2/token",
> RedirectURL: "http://localhost/",
100,103d96
< // Tack on the extra parameters, if specified.
< if *authparam != "" {
< *apiRequest += *authparam + ctoken.AccessToken
< }
if you run:
./oauthreq -cache -req=https://apis.live.net/v5.0/me/calendars
-ap='?access_token='
it works.
Original comment by ajstarks
on 17 Aug 2012 at 2:35
I was able to reproduce this yesterday, so I pinged some colleagues at
Microsoft. Now this morning, it seems to work fine passing the OAuth token in
the Authorization header. Either they were *really* quick to fix the problem,
or it's a fluke. I'm going to close this as fixed, but if anyone continues to
see this problem, please reopen and I'll investigate further.
Original comment by willnorris@google.com
on 7 Jun 2013 at 3:28
Original issue reported on code.google.com by
ajstarks
on 16 Aug 2012 at 10:23