Skip to content

Micorksen/cas-oauth-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 of key=value, separated with commas.


Requirements :

  • Install the package using composer require micorksen/cas-oauth-laravel and install your Socialite's driver. BOOM! You're ready to go.
  • Create a service in the config/services.php file, like this :
return [
  ...
  
  'cas' => [
    'https://micorksen.eu/(.*)',
  ],
];