Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 695785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:59:43+00:00 2026-05-14T02:59:43+00:00

I just picked up the Google API today to allow some users of our

  • 0

I just picked up the Google API today to allow some users of our site to upload videos to our own organization YouTube account. I Don’t want our users to know our user name and password, but rather give them the option if they want to upload videos to youtube or not. If they choose to do it, they check on a check box and hit the submit button.

I keep seeing over, and over in the Developers guide that ClientLogin, which to me looks like the best option to implement what I want to do, is not a good idea for user authentication in web applicaitons. The “AuthSub for web applications” doesn’t seem to be the best mechanism for what I want to implement!

Any ideas on what to do?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:59:43+00:00Added an answer on May 14, 2026 at 2:59 am

    After playing with the google API and other video service providers API’s I have learned a lot about authentication. oAuth and AuthSub are two methods that google uses to authenticate third party web applications to a user account.

    The process may seem messy at first, but once you understand it, it is not too bad. The following image shows the AuthSub process.

    alt text

    1. When the web application needs to access a user’s Google service, it makes an AuthSub call to Google’s Authorization Proxy service.
    2. The Authorization service responds by serving up an Access Request page. This Google-managed page prompts the user to grant/deny access to their Google service. The user may first be asked to log into their account.
    3. The user decides whether to grant or deny access to the web application. If the user denies access, they are directed to a Google page rather than back to the web application.
    4. If the user grants access, the Authorization service redirects the user back to the web application. The redirect contains an authorization token good for one use; it can be exchanged for a long-lived token.
    5. The web application contacts the Google service with a request, using the authorization token to act as an agent for the user.
    6. If the Google service recognizes the token, it supplies the requested data.

    http://code.google.com/apis/accounts/docs/AuthSub.html#AuthProcess

    When you would request to be authenticated and the user signs in to his/her google account, before he/she grants your application permission to do stuff in their account, and if your domain has not been register with google, the user will get a nasty red box telling them to be careful because the app they are about to give access to is not registered with them.

    The advantages about these methods over the old school username and password are (in my opinion) the following:

    1. Enhanced security for the user: The user won’t have to give you their user name and password, they have to log in to google and you will get an access token that you will use to make any further API calls. The user can revoke access to your application from inside google if they want to.
    2. The process may give the user the assurance that your app is “Legit”. If a user has to go through google to log in and allow your app, it may look good if your domain has been registered with google.
    3. The token can be promoted to a session token: This means that you do not have to ask the user to log in every time you need to request access to the google user account, just use the session token (that you must securely save somewhere) and you are done.
    4. Once you understand the process it is quite simple to authenticate users.
    5. (unverified) If the user changes their password, you don’t have to update the security token.
    6. Lastly if you use oAuth you can create an interface that may allow you to easily authenticate users when connecting to other web services such as Vimeo!

    With all of these said I guess you can figure out why it would be a bad idea to use username and passwords (which is what the ClientLogin does) to connect to a user account. Other authentication methods allow you to do the same thing (request access) and add a bunch of advantages.

    The code on how to authenticate users using AuthSub can be found here, it is pretty much plug n play. just make sure to save the $_SESSION[‘sessionToken’] to a more permanent location such as a DB.

    http://code.google.com/apis/youtube/2.0/developers_guide_php.html#AuthSub_for_Web_Applications

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just picked up a job where I'm to make some changes to a
I just picked up the code for an application our overseas developer has made
I've just picked up a contract to sort out a vipers-nest of e-commerce websites
I just picked up IronPython and I've been trying to get this IronPython script
I just picked up TortoiseHg to use for distributed source control on Windows and
I've just picked up Resharper and have been playing around converting fields to properties.
Warning : I have just picked up Maven, so things mentioned might be wrong
This question spans both serverfault and stackoverflow so I just picked this one. I
I'm no database expert -- I just know the basics, really. I've picked up
Hello everyone i just picked up jQuery So my question is i want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.