: Utilising Open ID and third party auth services I'm planning to utilise a third party authorisation service in order to allow users to sign in with their google/facebook accounts etc. In particular
I'm planning to utilise a third party authorisation service in order to allow users to sign in with their google/facebook accounts etc.
In particular I am aiming to use the Yii extension here-
www.yiiframework.com/extension/hybridauth/
I am uncertain of one point, however, and I'm hoping to clear this up before investing time into implementing this. How will I email a user? Are there third part API functions that I can use for this that vary between third party providers?
It occurs to me that this must be the same for the StackExchange network as I frequently receive email from the site and only sign in with my google credentials. However, upon checking my profile I can see my email address is listed, so I'm no longer sure.
Is anyone able to confirm how this works? If no-one is aware I will test this by registering a new account solely through google and check for emailed notifications.
More posts by @Phylliss660
1 Comments
Sorted by latest first Latest Oldest Best
Both OpenId and OAuth (the most widely used remote login schemes) send the email address of the user to the site upon successful login.
I implement both OpenId and OAuth on my website. I use OpenId for Google and OAuth for Facebook (which doesn't support OpenId). When the user logs in, I examine the data I get back from the login provider. This data comes in URL parameters. I store that information (including email address) in the database at that point. Here is a question that I asked that shows what data is available to you when a user logs in using either OAuth or OpenId: stackoverflow.com/questions/15816359/what-data-can-be-obtained-about-a-user-who-logs-in-with-facebook-oauth
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.