This is a Generic Oauth application to facilitate authenticate SIS users to any application in relates to it by SSO
You can install the package via git:
git clone https://github.com/moe-lk/auth_server
cd auth_server
composer install
setup the Database
in rename the .env.example in to .env and change the database variables into your own
Run in the command line
php artisan migrate
then run the following command to create a new client app
php artisan passport:client
Which user ID should the client be assigned to?:
>
What should we name the client?:
> Grafana
Where should we redirect the request after authorization? [http://localhost:3001/auth/callback]:
> http://localhost:3000/login/generic_oauth // link of the client’scallback
We tested this with Grafana Client and find the configuration for the given client
[auth.generic_oauth]
enabled = true
name = SIS
client_id = 3
client_secret = 33GZBFGSZKvUvGuK79wxcJ5CxZt4Sjn3ygfJhrLS
scopes = '*'
;email_attribute_name = email:primary
email_attribute_path = email
auth_url = http://localhost:8000/oauth/authorize #to redirect the auth_app
token_url = http://localhost:8000/oauth/token #to get the token
api_url = http://localhost:8000/api/user #to get user information
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.