diskominfotik-banda-aceh/sso-banda-aceh-php
最新稳定版本:v1.0.0
Composer 安装命令:
composer require diskominfotik-banda-aceh/sso-banda-aceh-php
包简介
This package help to connect SSO Banda Aceh with another applications with some features (View, Controller, Config and Route)
README 文档
README
SSO Banda Aceh PHP
This package provide some config for SSO laravel client that using keycloak for SSO
Installation
Run this command line for installation :
composer require diskominfotik-banda-aceh/sso-banda-aceh-php
Specific Version
composer require diskominfotik-banda-aceh/sso-banda-aceh-php:2.0.0
With Tilde (~) or Caret (^) Version Range
composer require diskominfotik-banda-aceh/sso-banda-aceh-php "^2.0.0"
Version
| Laravel Version | SSO Version |
|---|---|
| Laravel Ver.8 | V1.0.0 |
| Laravel Ver.9 | V2.0.0 |
| Laravel Ver.10 | V3.0.0 |
Usage
- Copy service provider in
app.phpfile for laravel < 5.5
'providers' => [
DiskominfotikBandaAceh\SSOBandaAcehPHP\SSOBandaAcehPHPServiceProvider::class
]
- Run this command line for make sure the package run properly
composer dumpautoload
- Publish the vendor if you want to use the migration or change the SSO view
php artisan vendor:publish --provider="DiskominfotikBandaAceh\SSOBandaAcehPHP\SSOBandaAcehPHPServiceProvider"
Note :
//Add --tag for specific publish. Ex : --tag=migrations,views,config
//Add --force for replace existing config file
- Migrate SSO User
php artisan migrate
- Copy
.envkeycloak in laravel client
KEYCLOAK_CLIENT_ID=
KEYCLOAK_CLIENT_SECRET=
KEYCLOAK_REDIRECT_URI=
KEYCLOAK_BASE_URL=
KEYCLOAK_REALM=
KEYCLOAK_PROFILE=
- Comment the default auth routes in
web.php(if the login just using SSO)
//Auth::routes;
- [Optional] Setting your
Usermodel insso-banda-aceh.phpconfig file (if not using the default inApp\Models\User)
'models' => [
'users' => User::class
]
- [Optional] Setting redirect after login in
sso-banda-aceh.phpconfig file (if not using the default redirect toadmin.home)
'redirect_after_login' => 'admin.home'
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email diskominfotikbna@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-27