Using the "Users by name" with long "user names"

21 views
Skip to first unread message

Thomas Körner

unread,
Feb 13, 2020, 6:32:14 AM2/13/20
to togglz-users
Hi,

i want to use the users by name strategy. To find out my user name i print out getCurrentUser().getName() of the UserProvider dependency. There was an very large outcome like this: Name: [Jon Doe], Granted Authorities: [ROLE__ADMIN], User Attributes: [sub=cDmN-tVr_wzTvm] and so on.
My questions are:

• Is this the right outcome to use for the Strategy?

• If yes, how can i define that the whole outcome (with commas) only define one user?
• If no, how can i find out the right value? Just with name (Jon Doe) it doesn't work.

Greetings

Thomas
Reply all
Reply to author
Forward
0 new messages