Download the PHP package andrewklau/socialite-openshift without Composer
On this page you can find all versions of the php package andrewklau/socialite-openshift. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andrewklau/socialite-openshift
More information about andrewklau/socialite-openshift
Files in andrewklau/socialite-openshift
Package socialite-openshift
Short Description OpenShift OAuth2 Provider for Laravel Socialite
License MIT
Informations about the package socialite-openshift
OpenShift OAuth2 Provider for Laravel Socialite
Documentation
This package makes use of the SocialiteProviders
package located here.
Install the package
Install the Service Provider
-
Remove
Laravel\Socialite\SocialiteServiceProvider
from your providers[] array in config\app.php if you have added it already. - Add
\SocialiteProviders\Manager\ServiceProvider::class
to your providers[] array in config\app.php.
Install the event listener
-
Add
SocialiteProviders\Manager\SocialiteWasCalled
event to your listen[] array in<app_name>/Providers/EventServiceProvider
. - The listener that you add for this provider is
'Andrewklau\Socialite\OpenShift\OpenShiftkExtendSocialite@handle',
.
For example:
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.
Append to .env
Append to config/services.php
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
Create OpenShift oAuth Client
Usage
Redirect to OpenShift with the scopes you want to access:
License
MIT