I want to have gmail login for users on my web portal. In addition, I want to store their email ids and check them to allow them to alter data in the portal. (i.e. Only users with email ids with @mycollege.ac.in will be allowed). And only the user who has filled up a form to input his data, will be able to modify or remove it.)
I want to have gmail login so it becomes easy for users. Also, if user is already logged in with gmail, he will be directly allowed to input data on the portal.
I have spent much time trying to google how to do this and I have only gotten as far as having a gmail login button on the site with openid. Nothing about storing the email id or automatically logging in. Also, the code of those pages is very difficult to understand for me.
I am new in PHP. I only have basic knowledge of MySQL and PHP. So can anyone please explain how to do or what to use? Or perhaps some link to a page that explains it simply? ( I have already visited https://developers.google.com/accounts/docs/OpenID?csw=1 but still I am stuck.)