Download the PHP package rinkp/socialite-azure-b2c without Composer
On this page you can find all versions of the php package rinkp/socialite-azure-b2c. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rinkp/socialite-azure-b2c
More information about rinkp/socialite-azure-b2c
Files in rinkp/socialite-azure-b2c
Download rinkp/socialite-azure-b2c
More information about rinkp/socialite-azure-b2c
Files in rinkp/socialite-azure-b2c
Vendor rinkp
Package socialite-azure-b2c
Short Description Microsoft Azure B2C OAuth2 Provider for Laravel Socialite
License MIT
Package socialite-azure-b2c
Short Description Microsoft Azure B2C OAuth2 Provider for Laravel Socialite
License MIT
Please rate this library. Is it a good library?
Informations about the package socialite-azure-b2c
Microsoft Azure B2C OAuth2 Provider for Laravel Socialite
1. Installation
2. Service provider
- Remove
Laravel\Socialite\SocialiteServiceProvider
from your providers[] array inconfig\app.php
if you have added it already. - Add
\SocialiteProviders\Manager\ServiceProvider::class
to your providers[] array inconfig\app.php
.
For example:
3. Event listener
- For signing in (required):
- Add the
\SocialiteProviders\Manager\SocialiteWasCalled::class
event to your listen array, if it wasn't added already. - Add the
SocialiteProviders\\AzureB2C\\AzureB2CExtendSocialite@handle
listener event to theSocialiteWasCalled
event.
- Add the
- For single sign out (optional):
- Add the
Illuminate\Auth\Events\Logout::class
event to your listen array, if it wasn't added already. - Add the
SocialiteProviders\\AzureB2C\\AzureB2CExtendSocialite@logOut
listener event to theLogout
event.
- Add the
See also the SocialiteProviders/Manager documentation.
4. Configuration setup
In config/services.php
you can set the required configuration.
Setting | |
---|---|
client_id | Azure App Registration Client ID |
client_secret | Azure App Registration Client Secret |
redirect | Callback URL |
redirect_logout | Where to redirect after a successful single sign-out |
tenant | A verified domain associated with the tenant |
tenant_name | The name of your tenant (the part before .onmicrosoft.com or .b2clogin.com) |
flow_name | The name of the flow registered in the directory |
cache_time | For how long the OpenID configuration and JWT keys need to be cached |
All versions of socialite-azure-b2c with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.6 || ^7.0
ext-json Version *
socialiteproviders/manager Version ~2.0 || ~3.0
firebase/php-jwt Version ^5.2
phpseclib/phpseclib Version ~2.0
ext-json Version *
socialiteproviders/manager Version ~2.0 || ~3.0
firebase/php-jwt Version ^5.2
phpseclib/phpseclib Version ~2.0
The package rinkp/socialite-azure-b2c contains the following files
Loading the files please wait ....