ThinkCode
ThinkCode

Reputation: 7961

How to use Google App Authentication for a custom PHP Web App?

I have a web app that users upload files to. I want to authenticate users using this app and they all have Google App email. If I can integrate just Google App authentication to my web app, that had be awesome.

I just don't want to convert the app to Google App Engine (Python/Java) or knit a Google App webpage on top of PHP web app to authenticate.

Is there a possibility like - I ask Google, pl authenticate user - if yes? then load page or else - sorry!

Hope I made sense. Any help is much appreciated!

p.s : The web app in question as well as google app email are on the same domain, mycompany.com. (webmail.mycompany.com and myapp.mycompany.com)

Upvotes: 3

Views: 4237

Answers (2)

Byron Whitlock
Byron Whitlock

Reputation: 53921

You can use open auth to do logins with google. The user will need to be redirected to google to login if they aren't logged in yet. Don't know if is what you mean when you say "knit a google app webpage on top of a php webpage" but that is unavoidable.

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

Upvotes: 1

Robert Kluin
Robert Kluin

Reputation: 8292

Use Google's OpenID.

Upvotes: 1

Related Questions