-
Notifications
You must be signed in to change notification settings - Fork 6k
Avoid toString in favor of getName in order to extract sid #6354
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
Conversation
There are some more sophisticated implementations of `getName` in `AbstractAuthenticationToken` and other `Authentication` classes.
Thanks for the PR! Can you please provide additional details on why you feel like this change is needed? |
When creating a resource server from |
We have |
Authentication has extended I think it does make sense to update the code as you suggested. However, I think we want a few changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you pushed some changes. However, I don't see any tests or removal of the UserDetails bits above. Did something go wrong?
I just rollbacked some changes
Rob Winch <notifications@github.com> 于2019年1月11日周五 上午12:12写道:
… ***@***.**** requested changes on this pull request.
I see you pushed some changes. However, I don't see any tests or removal
of the UserDetails bits above. Did something go wrong?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6354 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAktuiVdnmUqalTAusarYyRswPdm5oT2ks5vB2ZggaJpZM4ZyxCd>
.
--
杨博 (Yang Bo)
|
Can you please add the requested changes? |
@Atry Can you please add the requested tests? They should check that the correct principal was set. They will be similar to the following tests. spring-security/acl/src/test/java/org/springframework/security/acls/sid/SidTests.java Line 208 in 971ae34
|
Merged via ea148d5. |
There are some more sophisticated implementations of
getName
inAbstractAuthenticationToken
,JwtAuthenticationToken
and otherAuthentication
classes.