Download the PHP package socialiteproviders/azureadb2c without Composer
On this page you can find all versions of the php package socialiteproviders/azureadb2c. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download socialiteproviders/azureadb2c
More information about socialiteproviders/azureadb2c
Files in socialiteproviders/azureadb2c
Package azureadb2c
Short Description AzureADB2C OAuth2 Provider for Laravel Socialite
License MIT
Informations about the package azureadb2c
Azure AD B2C
Installation & Basic Usage
Please see the Base Installation Guide, then follow the provider specific instructions below.
Add configuration to config/services.php
To set up your Azure AD B2C custom domain, follow these instructions.
Add provider event listener
Laravel 11+
In Laravel 11, the default EventServiceProvider
provider was removed. Instead, add the listener using the listen
method on the Event
facade, in your AppServiceProvider
boot
method.
- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.
Laravel 10 or below
Configure the package's listener to listen for `SocialiteWasCalled` events. Add the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.Usage
You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):
Redirect to Azure AD B2C
Callback
Logout
Returned User fields
sub
name
Note) If you want to add claim mappings, change User::setRaw()
function. The claims mappings must be match with claims in id_token which Azure AD B2C returns.
All versions of azureadb2c with dependencies
ext-json Version *
ext-openssl Version *
firebase/php-jwt Version ^6.8
socialiteproviders/manager Version ^4.4