TheOAuth2.0loginflow,seencommonlyaroundthewebintheformof"Connect with Facebook/Google/etc."buttons,isacommonintegrationaddedtowebapplications,butitcanbetrickyandtedioustodoright.Tohelp,we'vecreatedthe`league/oauth2-client`package,whichprovidesabaseforintegratingwithvariousOAuth2.0providers,withoutoverburdeningyourapplicationwiththeconcernsof[RFC6749](http://tools.ietf.org/html/rfc6749).
ThisOAuth2.0clientlibrarywillworkwithanyOAuth2.0providerthatconformstotheOAuth2.0AuthorizationFramework.Out-of-the-box,weprovidea`GenericProvider`classtoconnecttoanyserviceproviderthatuses[Bearertokens](http://tools.ietf.org/html/rfc6750). See our [basic usage guide](https://oauth2-client.thephpleague.com/usage/) for examples using `GenericProvider`.
ManyserviceprovidersprovideadditionalfunctionalityaboveandbeyondtheOAuth2.0specification.Forthisreason,youmayextendandwrapthislibrarytosupportadditionalbehavior.Therearealreadymany[official](https://oauth2-client.thephpleague.com/providers/league/) and [third-party](https://oauth2-client.thephpleague.com/providers/thirdparty/) provider clients available (e.g., Facebook, GitHub, Google, Instagram, LinkedIn, etc.). If your provider isn't in the list, feel free to add it.
Weprovidealistof[officialPHPLeagueproviderclients](https://oauth2-client.thephpleague.com/providers/league/), as well as [third-party provider clients](https://oauth2-client.thephpleague.com/providers/thirdparty/).
Tobuildyourownproviderclient,pleasereferto"[Implementing a Provider Client](https://oauth2-client.thephpleague.com/providers/implementing/)."