Download the PHP package alancting/oauth2-microsoft-openid without Composer
On this page you can find all versions of the php package alancting/oauth2-microsoft-openid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alancting/oauth2-microsoft-openid
More information about alancting/oauth2-microsoft-openid
Files in alancting/oauth2-microsoft-openid
Package oauth2-microsoft-openid
Short Description Microsoft Azure Active Directory (Azure AD), Microsoft Active Directory Federation Services (ADFS) OpenId Integration for Symfony
License MIT
Informations about the package oauth2-microsoft-openid
Microsoft Adfs / AzureAD OpenId Integration for Symfony
Microsoft Azure Active Directory (Azure AD), Microsoft Active Directory Federation Services (Adfs) OpenId Integration for Symfony
- Login with Adfs / AzureAd
- All token handling is wrapped in the guard authenticator
- Easy to get the stored tokens from a registered service
This bundle integrates with knpuniversity/oauth2-client-bundle
This package provides Microsoft OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Forked From stevenmaguire/oauth2-microsoft
Installation
To install, use composer:
Get Start
Step 1 - Include in the bundles
Step 2 - Configure the provider
We make use of the configuration from knpuniversity/oauth2-client-bundle
Adfs
Azure Ad
Step 3 - Configure the use authenticator
Adfs
Azure Ad
Step 4 - Register pathsserver
We need to register two path to communicate with the OAuth2 server
- connect
- logout
Adfs
Azure Ad
Usage
After user login,
- You can get the login credentials
- User is logged in with the roles: ROLE_USER and ROLE_OAUTH_USER
Adfs
Azure Ad
Logout Handling
In symfony, to logout a user, you should use
- 4.4: Logout success handler
- 5.x+: Logout event
After your app go to logout handler / event, you should redirect user to the Adfs / Azure AD logout Url, you can get the url by
Tests
Run the tests using phpunit:
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of oauth2-microsoft-openid with dependencies
league/oauth2-client Version ^2.0
knpuniversity/oauth2-client-bundle Version ^2.3
symfony/dependency-injection Version ^4.4|^5.0
alancting/php-microsoft-jwt Version ^1.0