Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Using google as the idp and my own service as the sp in an OAuth exchange
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Cameron  
View profile  
 More options Oct 4 2012, 8:52 pm
From: David Cameron <dave...@gmail.com>
Date: Thu, 4 Oct 2012 17:52:40 -0700 (PDT)
Local: Thurs, Oct 4 2012 8:52 pm
Subject: Using google as the idp and my own service as the sp in an OAuth exchange

I'm building an Android application, and would like users to login with
their Google Apps account. However, I'm not using, nor am I interested in
using any of google's services in the backend. Is this possible?

I'm picturing this approach:

   1. Use AccountManager in the application to ask for the authtoken of a
   com.google account
   2. Send that authtoken to the server with requests
   3. On the server, validate that authtoken with google's servers
   4. Supply information to the user from my server, based on the validity
   of the token

There is so much documentation about accessing a google service (drive,
maps, tasks) at step 3, but no information about simply validating a token.
Is there a service to do this?

This document seems to suggests it is possible:
https://developers.google.com/accounts/docs/OAuth2Login

Meanwhile the authentication and authorization home page suggests that
OpenID should be used for authentication:
https://developers.google.com/accounts/

The page about authenticating mobile apps describes using embedded
WebViews, which I had hoped to avoid by using the AccountManager:
https://developers.google.com/accounts/docs/MobileApps

Although someone has written a library to do the embedded WebView approach:
http://stackoverflow.com/questions/3352592/webservice-credentials-ope...

Are there other possible approaches?

My priorities are:

   - not to handle passwords
   - be able to validate that a web request comes from a claimed user
   (according to google)
   - tie that user to a user in my system (probably via the "name" of the
   account in AccountManager, which is the email address)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »