Package Data | |
---|---|
Maintainer Username: | akkyoh |
Maintainer Contact: | yoh2010@gmail.com (Evgenij Rusachenko) |
Package Create Date: | 2016-07-29 |
Package Last Update: | 2016-07-29 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2025-02-06 15:00:10 |
Package Statistics | |
---|---|
Total Downloads: | 17 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
1. COMPOSER
composer require akkyoh/socialite_bitbucket
2. SERVICE PROVIDER
// For example
'providers' => [
// a whole bunch of providers
// remove 'Laravel\Socialite\SocialiteServiceProvider',
\SocialiteProviders\Manager\ServiceProvider::class, // add
];
3. ADD THE EVENT AND LISTENERS
// For example
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// add your listeners (aka providers) here
'Akkyoh\SocialiteBitbucket\BitbucketExtendSocialite@handle',
],
];
4. ENVIRONMENT VARIABLES
If you add environment values to your .env as exactly shown below, you do not need to add an entry to the services array.
// other values above
BITBUCKET_KEY=yourkeyfortheservice
BITBUCKET_SECRET=yoursecretfortheservice
BITBUCKET_REDIRECT_URI=https://example.com/login
You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method
'bitbucket' => [
'client_id' => env('BITBUCKET_KEY'),
'client_secret' => env('BITBUCKET_SECRET'),
'redirect' => env('BITBUCKET_REDIRECT_URI'),
],
You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):
return Socialite::driver('bitbucket') -> redirect();