设备认证
This commit is contained in:
parent
2fe984f268
commit
2f22341e16
|
|
@ -162,8 +162,8 @@ public class AuthController {
|
|||
|
||||
@ApiOperation("设备认证")
|
||||
@PostMapping({"/device/login"})
|
||||
public AjaxResult deviceLogin(@RequestHeader Map<String, String> header, @RequestBody String request) {
|
||||
String deviceSn = SmUtils.decryptBySm2(request);
|
||||
public AjaxResult deviceLogin(@RequestHeader Map<String, String> header, @RequestParam String encryptedDeviceSn) {
|
||||
String deviceSn = SmUtils.decryptBySm2(encryptedDeviceSn);
|
||||
String encryptKey = HeaderFetchUtil.getValueFromHeadersIgnoreCase(header, this.secureProperties.getSecurity().getServerEncryptedClientKeyHeaderName());
|
||||
String clientKey = SmUtils.decryptBySm4WithServerKey(encryptKey);
|
||||
if (CharSequenceUtil.isEmpty(deviceSn)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue