|
@@ -98,15 +98,15 @@ public class WudaOpenApiController {
|
|
if (Objects.isNull(uid)) {
|
|
if (Objects.isNull(uid)) {
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
throw ExceptionResultEnum.NOT_LOGIN.exception();
|
|
}
|
|
}
|
|
- Principal principal = request.getUserPrincipal();
|
|
|
|
- if (principal != null && principal instanceof AttributePrincipal) {
|
|
|
|
- AttributePrincipal aPrincipal = (AttributePrincipal) principal;
|
|
|
|
- //获取用户信息中公开的Attributes部分
|
|
|
|
- Map<String, Object> map = aPrincipal.getAttributes();
|
|
|
|
- // 获取姓名,可以根据属性名称获取其他属性
|
|
|
|
- String cn = (String) map.get("cn");
|
|
|
|
- log.info("cn:{}", cn);
|
|
|
|
- }
|
|
|
|
|
|
+// Principal principal = request.getUserPrincipal();
|
|
|
|
+// if (principal != null && principal instanceof AttributePrincipal) {
|
|
|
|
+// AttributePrincipal aPrincipal = (AttributePrincipal) principal;
|
|
|
|
+// //获取用户信息中公开的Attributes部分
|
|
|
|
+// Map<String, Object> map = aPrincipal.getAttributes();
|
|
|
|
+// // 获取姓名,可以根据属性名称获取其他属性
|
|
|
|
+// String cn = (String) map.get("cn");
|
|
|
|
+// log.info("cn:{}", cn);
|
|
|
|
+// }
|
|
UserAuthenticationDto userAuthenticationDto = new UserAuthenticationDto(uid, SystemConstant.getUuid());
|
|
UserAuthenticationDto userAuthenticationDto = new UserAuthenticationDto(uid, SystemConstant.getUuid());
|
|
WhuUserAuthCacheUtil.setAuthCode(userAuthenticationDto);
|
|
WhuUserAuthCacheUtil.setAuthCode(userAuthenticationDto);
|
|
String pattern = "{0}{1}{2}";
|
|
String pattern = "{0}{1}{2}";
|