Hello Dan,
Based on what you describe, you're using the Installed Applications
flow with urn:ietf:wg:oauth:2.0:oob as the redirect_uri, and parsing
the token from the title of the web browser's window, correct? I'm
sorry that we don't provide more than an example in the OAuth 2 guide
(https://developers.google.com/youtube/2.0/
developers_guide_protocol_oauth2) of what the window title could look
like—I agree that providing a specific algorithm (like, "always split
on '=' and use the second value") explicitly spelled out in the guide
would be very helpful. I'll sync up with the folks at Google
responsible for our OAuth 2 infrastructure and ask them to provide a
best practice that we could pass along.
In the meantime, we really can't offer any assurances about the
length of the token—it's meant to be an opaque value, and we don't
document its length as being 30 characters. The workaround you have in
place should hold you over until we can provide authoritative guidance
as to the best practice.
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Apr 24, 11:26 am, Sandy <alexanderpe...@gmail.com> wrote:
> YouTube, please help! Our application is sinking! Please fix this API
> problem....!
>
>
>
>
>
>
>
> On Monday, April 23, 2012 11:07:43 PM UTC-7, Dan S wrote:
>
> > Hello,
> > Recently (perhaps in the last 0-5 hours) my .NET based application which
> > has an "upload to youtube" feature has started failing for all users during
> > the oAuth2 authentication sequence.
>
> > Up until a few hours ago, the application worked fine for about 5 months
> > straight.
>
> > I have double checked my YouTube Developer Key, Oauth2 Client ID, Client
> > Secret, and Redirect URI .. everything is fine.
>
> > I have tried upgrading my app to use the latest versions of the following
> > dlls:
>
> > DotNetOpenAuth.dll
> > Google.Apis.Authentication.OAuth2.dll
> > Google.Apis.dll
> > Google.GData.Client.dll
> > Google.GData.Extensions.dll
> > Google.GData.YouTube.dll
> > log4net.dll
> > Newtonsoft.Json.Net35.dll
>
> > Regardless, I still get:
> > Message: The remote server returned an error: (400) Bad Request.
> > StackTrace: at System.Net.HttpWebRequest.GetResponse()
>
> > ==========
>
> > I tried using the latest Google sample oAuth2 app:
> > Tasks.SimpleOAuth2
> > which is part of the "samples" package available here:
> >http://code.google.com/p/google-api-dotnet-client/wiki/Downloads
>
> > I get the same exact result, error 400 Bad Request.
>
> > So at this point I need to verify if the YouTube OAuth2 API is down for
> > everyone, or is it just me? (developer id available via private
> > communication on request)
> > If it is down for everyone, when can we expect it back up?
> > If it is down for just our developer ID, what can we do to fix this?
>
> > Thank you!
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment