oppknox
November 11, 2019, 1:31am
1
I’d like to enable AAD auth within my Grav site, but the existing oauth2 plugins do not support it. I can see that under the hood of the plugin it is using https://oauth2-client.thephpleague.com/ which does support AAD auth. Would anyone else find this useful? Or is there anyone out there with the talent and willingness to implement and create the pull request?
# Login OAuth2 Plugin
The **Login OAuth2** Plugin for [Grav CMS](http://github.com/getgrav/grav) allows user authentication against an OAuth2 Authentication Provider. This plugin makes use of [The League OAuth2 Client](http://oauth2-client.thephpleague.com/)
Currently the core plugin supports the following providers:
* **Facebook** - https://developers.facebook.com/docs/facebook-login/web
* **GitHub** - https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
* **Google** - https://developers.google.com/identity/protocols/OpenIDConnect
* **Instagram** - https://www.instagram.com/developer/authentication/
* **LinkedIn** - https://developer.linkedin.com/docs/oauth2
It's also possible to extend this plugin an create a new AOauth2 for specific providers.
## Callback URL
When you setup your OAuth provider application, you will need to provide a Callback URL. Grav passes this as part of the OAuth2 request process, but it needs to match the configuration on the server side. Typically, when logging in via the the frontend **site**, the URL will look something like this:
```text
http://yoursite.com/task:callback.oauth2
This file has been truncated. show original
Thank you!