Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
プレフィックス認証仕様調整
Browse files Browse the repository at this point in the history
プレフィックス設定が無効となっている場合は認証セッションを無効とした
  • Loading branch information
ryuring committed Mar 20, 2023
1 parent f8df51b commit 8378dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/baser-core/src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function getAuthenticationService(ServerRequestInterface $request): Authe

if (!$this->isRequiredAuthentication($authSetting)) {
$service->loadAuthenticator('Authentication.Form');
if (!empty($authSetting['sessionKey'])) {
if (!empty($authSetting['sessionKey']) && empty($authSetting['disabled'])) {
$service->loadAuthenticator('Authentication.Session', [
'sessionKey' => $authSetting['sessionKey'],
]);
Expand Down
2 changes: 2 additions & 0 deletions plugins/baser-core/src/Utility/BcUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ class BcUtil
* 他の領域のログインセッションより取得する。
* 複数のログインセッションにログインしている場合は定義順の降順で最初のログイン情報を取得
*
* $prefix を指定したとしても authentication より取得できた場合はそちらを優先する
*
* @return User|false
* @checked
* @noTodo
Expand Down

0 comments on commit 8378dab

Please sign in to comment.