Question

I am working on a NodeJS module which provides an object oriented wrapper for the YouTube v3 API.
In present it supports only OAuth 2.0 authentication protocol.

On this documentation page we find this:

The YouTube Data API supports the OAuth 2.0 protocol for authorizing access to private user data.

Does this mean that YouTube REST API doesn't support basic authentication?
Is there any reference that proves that basic authentication cannot be implemented?

Is basic authentication supported/allowed?

Was it helpful?

Solution

You can try this type of Authentication witch is pretty basic:

https://developers.google.com/youtube/2.0/developers_guide_protocol_clientlogin#ClientLogin_Authentication

Here you have a sample Request:

POST /accounts/ClientLogin HTTP/1.0
Content-type: application/x-www-form-urlencoded

accountType=HOSTED_OR_GOOGLE&Email=jondoe@gmail.com&Passwd=north23AZ&service=cl&
   source=Gulp-CalGulp-1.05

Note that this type of authentication has been deprecated.

Note: The YouTube Data API (v2) has been officially deprecated as of March 4, 2014. Please refer to our deprecation policy for more information.


Important: The ClientLogin authentication protocol has been officially deprecated as of April 20, 2012. It will continue to work as per our deprecation policy, but we encourage you to migrate to OAuth 2.0 authentication as soon as possible. If you are building a new application, you should use OAuth 2.0 authentication.

If you are already using ClientLogin and are encountering authentication failures with certain accounts, refer to the ClientLogin #FAIL blog post for recommendations.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top