micorksen / cas-oauth-laravel
A way to bridge an OAuth provider to a CAS-only application.
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/micorksen/cas-oauth-laravel
Requires
- laravel/framework: ^10.43
- socialiteproviders/manager: ^4.4
README
cas-oauth-laravel
Configuration :
⚠️ Note: You need to add checked variables into the .env file and create a service, else, the package won't route anything.
-
CAS_PROPERTY: Property used for generating the CAS ticket (default :id) -
OAUTH_PROVIDER: Socialite driver to use. -
OAUTH_SCOPES: Scopes to use, separated with commas (default :openid,profile,email). -
OAUTH_CLIENT_ID: ID of your OAuth application. -
OAUTH_CLIENT_SECRET: Secret of your OAuth application. -
OAUTH_PARAMS: Custom args to pass to the OAuth provider, in format ofkey=value, separated with commas.
Requirements :
- Install the package using
composer require micorksen/cas-oauth-laraveland install your Socialite's driver. BOOM! You're ready to go. - Create a service in the
config/services.phpfile, like this :
return [ ... 'cas' => [ 'https://micorksen.eu/(.*)', ], ];