回答編集履歴
1
追記
test
CHANGED
@@ -1,3 +1,11 @@
|
|
1
1
|
loadUserByUsernameクラスの中で、org.springframework.security.core.userdetails.Userを以下のように生成して、返して下さい。
|
2
2
|
|
3
3
|
つnew User(username, password, authorities)
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
追記
|
8
|
+
|
9
|
+
認証が成功すると、UserControllerクラスの対応するMethodが呼ばれます。
|
10
|
+
|
11
|
+
そこで、Userに設定したusernameやauthoritiesを取り出します。
|