♻️ Refactoring code. 支持数据库记录 client 信息
This commit is contained in:
1 parent
e356e02f31
commit
4e805cd792
3 files changed
+10
No files matched your search
+3
@@ -70,6 +70,9 @@ public class SysLogUtils {
|
||||
*/
|
||||
private String getClientId() {
|
||||
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
||||
if (authentication == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Object principal = authentication.getPrincipal();
|
||||
if (principal instanceof OAuth2AuthenticatedPrincipal) {
|
||||
|
||||
Reference in new issue
Block a user