oauth2-server-php icon indicating copy to clipboard operation
oauth2-server-php copied to clipboard

Question: is it possible to easily have "login via Google / FB" option using this lib?

Open janzankowski opened this issue 8 years ago • 2 comments

[Sorry for writing a detailed spec below only after posting the question.]

What I'd like to do is to use this library to set up an SSO server. My sites will redirect to a username/password form page hosted on this server when the user clicks a "Login" link on one of the sites.

My question is whether I can easily hook up the code to handle a button "Login via Google / Facebook" on the same page as such a form.

janzankowski avatar Oct 26 '17 14:10 janzankowski

@janzankowski I believe that would be the functionality of an OAuth2 Client. If you are looking to add a "Login with Google" button on your service, you might want to look at ThePHPLeague's OAuth2 Client

If you mean you want to be a provider of the "Login with MyService" button (users will use your service to authenticate themselves on other OAuth2 consumers) then the answer YES! That is just an Authorization Grant Type flow, which this library definitely supports.

lucasantarella avatar Oct 26 '17 14:10 lucasantarella

@lucasantarella do you know if ThePHPLeague's OAuth2 Client can be used for OIDC logins?

linuxd3v avatar May 24 '18 20:05 linuxd3v