Download the PHP package sempro/socialite-provider-vipps without Composer
On this page you can find all versions of the php package sempro/socialite-provider-vipps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sempro/socialite-provider-vipps
More information about sempro/socialite-provider-vipps
Files in sempro/socialite-provider-vipps
Package socialite-provider-vipps
Short Description Vipps OAuth2 Provider for Laravel Socialite
License MIT
Informations about the package socialite-provider-vipps
Socialite Provider for Vipps
Custom provider for using Vipps with Laravel Socialite. This package requires laravel socialite in your project.
1. Installation
2. 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.
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.3. Add configuration to config/services.php
Remember to whitelist the redirect_uri in the Vipps portal.
4. Usage
To initiate the Vipps login, add this to your controller
You've now gotten a user token from Vipps in your callback function. Now we need to use the user token to get the phone number of the authenticated user.
Example for a VippsAuthController:
Vipps guidelines
When using Vipps login you need to use the login button svgs provided by Vipps. Go to Vipps brand guidelines for more info.
License
MIT © Indent AS