Where / How can I get the Google Reader signin page?

72 views
Skip to first unread message

Tony Zeng

unread,
Jun 24, 2012, 8:01:41 AM6/24/12
to foug...@googlegroups.com
Hello.

I have seen some apps are using Google's organic sign in page in their apps for users to signin.

Shown like this:

How can I get this page too?

Thanks

Mihai Parparita

unread,
Jun 24, 2012, 5:24:09 PM6/24/12
to foug...@googlegroups.com
This is provided by the OAuth 2 login flow: https://developers.google.com/accounts/docs/OAuth2InstalledApp

Mihai

Tony Zeng

unread,
Jun 25, 2012, 10:32:04 AM6/25/12
to foug...@googlegroups.com
Thanks that's what I need.

If I let user login sololy just for Google Reader API, what kind of value I should give to "scope" parameter in the request uri?

Thanks


On Sunday, June 24, 2012 10:24:09 PM UTC+1, Mihai P. wrote:
This is provided by the OAuth 2 login flow: https://developers.google.com/accounts/docs/OAuth2InstalledApp

Mihai

Mihai Parparita

unread,
Jun 25, 2012, 2:21:23 PM6/25/12
to foug...@googlegroups.com

Tony Zeng

unread,
Jun 26, 2012, 9:56:48 AM6/26/12
to foug...@googlegroups.com
Thanks Mihai.

I have read the flow of Google OAuth2 flow. I have some confusion and hope you can help clarify it.

Here is my understanding:

0. Assuming the user just launched my app for the first time.

1. I produce a UIWebView in my app and load it with the Google OAuth2 request url (with all necessary parameters).

2. Google will then return me the login page and I display it in the UIWebView.

3. User input the username and password and tap "sign in"

4. Google will return the consent page in the UIWebView and ask user's approval. 

5. User tap "permit" 

6. Google will then return the "code" as the title of the returning page.

7. I get the "code", then ask for "token" for the following steps (Google Reader API calling, etc)

Ok, I understand the above steps. But they are for the first time usage, right?

What then if the user launches my app for the 2nd and following times?

Should I store the "code" value in my app and if the user gets in my app again, I just begin from step 7?

What I should do to avoid the user to input their username and password again?

Thanks


On Monday, June 25, 2012 7:21:23 PM UTC+1, Mihai P. wrote:
Mihai

Tony Zeng

unread,
Jun 26, 2012, 11:46:43 AM6/26/12
to foug...@googlegroups.com
Also, when I get the code from OAuth2, the tile's code is different from the one in the textfield. Just shown like this

The code in the title of the page is 4/25Pnu7231CVQJjeV8GmvCD5tdvdZ

But in the text field it shows like 4/25Pnu7231CVQJjeV8GmvCD5tdvdZ.Qg7ACFVRgmUcOl05ti8ZT3aJye5ScAI

Why does this happen? Why the text field has more chars than in the title for the code?

Which one I should use?

Thanks

On Sunday, June 24, 2012 10:24:09 PM UTC+1, Mihai P. wrote:
This is provided by the OAuth 2 login flow: https://developers.google.com/accounts/docs/OAuth2InstalledApp

Mihai
Reply all
Reply to author
Forward
0 new messages