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

通常のログアウト時に、二段階認証もログアウトしたい #15

Closed
chihiro-adachi opened this issue Mar 10, 2023 · 6 comments
Milestone

Comments

@chihiro-adachi
Copy link
Contributor

現状以下のような挙動となります。
通常のログアウトを行った際、二段階認証の認証状態もログアウトできるのが望ましいかと思われます。

  1. ログインする
  2. マイページにアクセス
  3. 二段階認証をログインする
  4. ログアウトする
  5. ログインする
  6. マイページにアクセスする
  7. 二段階認証は実行されず、マイページを閲覧できる
@KenTanaka
Copy link
Collaborator

@chihiro-adachi
ログアウトはプラグインでもイベントとして拾えますでしょうか?

@chihiro-adachi
Copy link
Contributor Author

chihiro-adachi commented Mar 10, 2023

@KenTanaka
stack overflowにはできないかも?みたいな記述がありますね。。
https://stackoverflow.com/questions/60998790/symfony-5confirmation-message-after-logout

一応ドキュメントには記載があるようなので、試してみていただいてよいでしょうか。
https://symfony.com/doc/5.4/security.html#customizing-logout

@KenTanaka
Copy link
Collaborator

@chihiro-adachi
https://symfony.com/doc/5.4/security.html#customizing-logout
こちらの方法でログアウトイベントのサブスクライブはできましたので
 ・ECCUBEログアウト時に、二段階認証系Cookieを削除
するようにしました。

@chihiro-adachi
Copy link
Contributor Author

@KenTanaka
ありがとうございます。
Cookieだけでなく、#17 の新設パラメータも更新いただければと思います。

@KenTanaka
Copy link
Collaborator

@chihiro-adachi
ログアウト時にCookieを保存しているレコードを削除するようにしました。

@chihiro-adachi
Copy link
Contributor Author

@KenTanaka
ありがとうございます、修正確認しました。

@chihiro-adachi chihiro-adachi added this to the 1.0.0 milestone Mar 23, 2023
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

No branches or pull requests

2 participants