♻️ Refactoring code. 支持数据库记录 client 信息

This commit is contained in:
lbw committed 2023-03-17 16:33:33 +08:00
1 parent e356e02f31
commit 4e805cd792
3 files changed
+10

No files matched your search

@@ -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) {