sentrasoft / laravel-cas

Apereo CAS Authentication for Laravel
MIT License
5 stars 9 forks source link

How use laravel-CAS with Spatie laravel permission? #6

Closed cod3r0k closed 4 years ago

cod3r0k commented 4 years ago

Hi, How can I use laravel-CAS for login authentication and the I want to use any solution for my app permissions (such as spatie laravel-permission).

Could you help me...

beonami commented 4 years ago

Hello, this package applies to Laravel 5. *. I haven't had the chance to upgrade to the latest laravel version (upgrade as soon as possible).

Please note, after auth using cas, you must store the cas user to local database. Look at the Auth\CasController callback. After that, you can set the permissions with the local User ID.