Question: is it possible to easily have "login via Google / FB" option using this lib?
[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 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 do you know if ThePHPLeague's OAuth2 Client can be used for OIDC logins?