How to use Google App authentication for a custom PHP web application?

I have a web application in which users upload files. I want to authenticate users using this application, and they all have a Google App email. If I can only integrate Google App authentication into my web application, that would be awesome.

I just don’t want to convert the application to Google App Engine (Python / Java) or to knit the Google App web page on top of the PHP web application for authentication.

Is there such an opportunity - I ask Google, pl to authenticate the user - if so? then load the page, otherwise - sorry!

Hope I made sense. Any help is much appreciated!

ps: the web application in question as well as the Google email address are in the same domain, mycompany.com. (webmail.mycompany.com and myapp.mycompany.com)

+3
source share
2 answers

You can use open auth to log in using google. The user must be redirected to google to log in if they are not already logged in. You don’t know what you mean when you say “knit Google app web page over php web page”, but this is inevitable.

Take a look here https://developers.google.com/accounts/docs/OpenID

+1
source
+1
source

Source: https://habr.com/ru/post/1795337/


All Articles