質問するログイン新規登録

質問編集履歴

1

質問文の修正

2021/10/20 10:03

投稿

kawauso
kawauso

スコア56

title CHANGED
@@ -1,1 +1,1 @@
1
- ASP.NET MVC4でGoogle Authenticatorを用いた2要素認証を実装したい
1
+ [ASP.NET MVC]Google Authenticatorを用いた認証を実装したい
body CHANGED
@@ -1,6 +1,8 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
- ASP.NET MVC4で[Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=ja&gl=US)などを用いた二要素認証を実装したいと思っております。
3
+ ASP.NET MVCで[Google Authenticator](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2&hl=ja&gl=US)などを用いた認証を実装したいと思っております。
4
+ 流れとしてはIDとパスワードでログインした後にGoogle Authenticatorなどで発行されたワンタイムパスワードで認証が通ればログイン後の画面に遷移させたいと思っております。
5
+
4
6
  [Using Google Authenticator with ASP.NET Identity](https://www.jerriepelser.com/blog/using-google-authenticator-asp-net-identity/)こちらのページを参考に実装してAuthenticatorの有効化までは完了しました。(↓画像)
5
7
  ![イメージ説明](c293adc42eac1bbc89ad550d7e6468e1.png)
6
8
  説明にあるように一度ログアウトしてログインしても`Account/SendCode`に遷移してくれず、普通にログインできてしまいました。