Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single logout with oauth #1562

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

koizu-mkII
Copy link
Collaborator

@koizu-mkII koizu-mkII commented Jan 24, 2025

実施タスク

なし

実施内容

  • ログイン設定でシングルサインアウト(Single Logout)を指定できるように設定項目を追加
    • ただし、設定値が以下の場合に限る
      • ログイン種類:OAuth認証
      • プロバイダー種類:その他
  • SSOでログイン後にログアウトする際、シングルサインアウトの指定がある場合、プロバイダーのログアウト後に、Exmentのログイン画面にリダイレクトするように実装

レビューして欲しいこと

  • ログイン設定画面
    • ログイン種類=OAuth認証、プロバイダー種類:その他 の場合のみ、シングルサインアウトの設定項目が表示される
  • プロバイダー種類
    • microsoft
    • graph
      • Repository : exceedone/microsoft-graph, Branch : feature/support_single_logout をチェックアウトしてください
    • okta

@koizu-mkII koizu-mkII changed the title ingle logout with oauth Single logout with oauth Jan 24, 2025
switch ($login_user->login_type) {
case LoginType::SAML:
return $this->logoutSaml($request, $login_user->login_provider, $options);
break;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CIでエラーがでていますがこちらのbreak;は到達不能のため削除していただければと思います

https://github.com/exceedone/exment/pull/1562/checks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oreno4649
アドバイスありがとうございました。
無事にphpstanのチェックをパスできました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants