Sign in only with gmail

78 views
Skip to first unread message

2sb...@gmail.com

unread,
May 29, 2013, 8:09:13 PM5/29/13
to google-iden...@googlegroups.com

I want user to login in my site using only gmail account so i am using IDP like 

    idps: ["Gmail"],

How to get rid of "Sign in with Email"  ?



Adam Dawes

unread,
May 30, 2013, 12:20:10 AM5/30/13
to google-iden...@googlegroups.com
If all you want is to support login with Google, by far the easiest solution is Google+ Sign-in. Is that your use case?

thanks,
Adam





--
You received this message because you are subscribed to the Google Groups "Google Identity Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-t...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

2sb...@gmail.com

unread,
May 30, 2013, 3:21:05 PM5/30/13
to google-iden...@googlegroups.com
Thank you Adam Dawes  let me check but i hope it has to do only with authentication and not with google plus which is social network website. 
My company uses google domain for mail like myCompany.com which is actually gmail and so i want to only google account authentication. 

Thank you for the link. Hope it is what i want :)


On Wednesday, May 29, 2013 9:20:10 PM UTC-7, Adam Dawes wrote:
If all you want is to support login with Google, by far the easiest solution is Google+ Sign-in. Is that your use case?

thanks,
Adam
On Wed, May 29, 2013 at 5:09 PM, <2sb...@gmail.com> wrote:

I want user to login in my site using only gmail account so i am using IDP like 

    idps: ["Gmail"],

How to get rid of "Sign in with Email"  ?



--
You received this message because you are subscribed to the Google Groups "Google Identity Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-toolkit+unsub...@googlegroups.com.

2sb...@gmail.com

unread,
May 30, 2013, 10:15:16 PM5/30/13
to google-iden...@googlegroups.com
No , that is not what i want. It ask User to enter public profile etc.. It appears to be linked of Google+. 
Certainly not people in my company would like to do that :), i just want Google based authentication with no Google Plus. 




On Wednesday, May 29, 2013 9:20:10 PM UTC-7, Adam Dawes wrote:
If all you want is to support login with Google, by far the easiest solution is Google+ Sign-in. Is that your use case?

thanks,
Adam
On Wed, May 29, 2013 at 5:09 PM, <2sb...@gmail.com> wrote:

I want user to login in my site using only gmail account so i am using IDP like 

    idps: ["Gmail"],

How to get rid of "Sign in with Email"  ?



--
You received this message because you are subscribed to the Google Groups "Google Identity Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-toolkit+unsub...@googlegroups.com.

Adam Dawes

unread,
May 31, 2013, 1:47:49 AM5/31/13
to google-iden...@googlegroups.com
Then you should also look at our OAuth 2 login API:



To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-t...@googlegroups.com.

2sb...@gmail.com

unread,
May 31, 2013, 12:15:57 PM5/31/13
to google-iden...@googlegroups.com
I am trying to use Google Identity kit, which is finally working now. I don't know how to extract user email from the call back url after successful login.


On Thursday, May 30, 2013 10:47:49 PM UTC-7, Adam Dawes wrote:
Then you should also look at our OAuth 2 login API:

On Thu, May 30, 2013 at 7:15 PM, <2sb...@gmail.com> wrote:
No , that is not what i want. It ask User to enter public profile etc.. It appears to be linked of Google+. 
Certainly not people in my company would like to do that :), i just want Google based authentication with no Google Plus. 



On Wednesday, May 29, 2013 9:20:10 PM UTC-7, Adam Dawes wrote:
If all you want is to support login with Google, by far the easiest solution is Google+ Sign-in. Is that your use case?

thanks,
Adam
On Wed, May 29, 2013 at 5:09 PM, <2sb...@gmail.com> wrote:

I want user to login in my site using only gmail account so i am using IDP like 

    idps: ["Gmail"],

How to get rid of "Sign in with Email"  ?



--
You received this message because you are subscribed to the Google Groups "Google Identity Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-toolkit+unsubscr...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mengcheng Duan

unread,
May 31, 2013, 12:37:03 PM5/31/13
to google-iden...@googlegroups.com
take a look at the response of verifyAssertion API. The "verifiedEmail" is what you are looking for.


- Mengcheng


To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-t...@googlegroups.com.

2sb...@gmail.com

unread,
May 31, 2013, 1:54:40 PM5/31/13
to google-iden...@googlegroups.com
@Mengcheng thank you for your response. 

It appears you are right but can you explain a bit or correct my understanding .

I logged in my site using GIT and i had the call-back url set to say http://XXXXXX/callBackUrl.html
After i logged in the GIT correctly takes me to the call-back url and it has lots of parms along with the call back url .
Ex: 

So according to your suggestion I should now send a POST request to the following URL 


{
  "requestUri": string,
  "postBody": string,
  "returnOauthToken": boolean
}

where requetUri is the call back url so 
postBody: 
The post body if the request is a HTTP POST  ? Under what circumstances it can be post. I just want to verify so why post ?
returnOauthToken: true 

and then i will get the response with the user details.  Is that right  ? 








Mengcheng Duan

unread,
May 31, 2013, 2:46:32 PM5/31/13
to google-iden...@googlegroups.com
Before you log in the user, you need to call the verifyAssertion API to verify the IDP response. You should put the whole callback URL (including the parameters), which in your case is http://xxxxxx/callBackUrl.html?rp_target=callback&rp_purpose=signin&..., into the "requestUri" field. The "postBody" can be omitted or an empty string if your callback doesn't get a post body from the IDP. If the requestUri and postBody are valid, verfiyAssertion will return the response described in the doc which contains all information you need for logging in the user. You should login the user only when verifyAssertion returns a correct response.


- Mengcheng


To unsubscribe from this group and stop receiving emails from it, send an email to google-identity-t...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages