|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
/*
|
|
|
- * Copyright [2024] [MaxKey of copyright http://www.maxkey.top]
|
|
|
|
|
|
|
+ * Copyright [2025] [MaxKey of copyright http://www.maxkey.top]
|
|
|
*
|
|
*
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
* you may not use this file except in compliance with the License.
|
|
* you may not use this file except in compliance with the License.
|
|
@@ -156,7 +156,7 @@ public class PasskeyRegistrationEndpoint {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/list/{userId}")
|
|
@GetMapping("/list/{userId}")
|
|
|
public ResponseEntity<?> getUserPasskeys(
|
|
public ResponseEntity<?> getUserPasskeys(
|
|
|
- @PathVariable String userId,
|
|
|
|
|
|
|
+ @PathVariable("userId") String userId,
|
|
|
HttpServletRequest httpRequest,
|
|
HttpServletRequest httpRequest,
|
|
|
HttpServletResponse httpResponse) {
|
|
HttpServletResponse httpResponse) {
|
|
|
|
|
|
|
@@ -195,8 +195,8 @@ public class PasskeyRegistrationEndpoint {
|
|
|
*/
|
|
*/
|
|
|
@DeleteMapping("/delete/{userId}/{credentialId}")
|
|
@DeleteMapping("/delete/{userId}/{credentialId}")
|
|
|
public ResponseEntity<?> deletePasskey(
|
|
public ResponseEntity<?> deletePasskey(
|
|
|
- @PathVariable String userId,
|
|
|
|
|
- @PathVariable String credentialId,
|
|
|
|
|
|
|
+ @PathVariable("userId") String userId,
|
|
|
|
|
+ @PathVariable("credentialId") String credentialId,
|
|
|
HttpServletRequest httpRequest,
|
|
HttpServletRequest httpRequest,
|
|
|
HttpServletResponse httpResponse) {
|
|
HttpServletResponse httpResponse) {
|
|
|
|
|
|
|
@@ -240,7 +240,7 @@ public class PasskeyRegistrationEndpoint {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/stats/{userId}")
|
|
@GetMapping("/stats/{userId}")
|
|
|
public ResponseEntity<?> getPasskeyStats(
|
|
public ResponseEntity<?> getPasskeyStats(
|
|
|
- @PathVariable String userId,
|
|
|
|
|
|
|
+ @PathVariable("userId") String userId,
|
|
|
HttpServletRequest httpRequest,
|
|
HttpServletRequest httpRequest,
|
|
|
HttpServletResponse httpResponse) {
|
|
HttpServletResponse httpResponse) {
|
|
|
|
|
|
|
@@ -273,7 +273,7 @@ public class PasskeyRegistrationEndpoint {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/support/{userId}")
|
|
@GetMapping("/support/{userId}")
|
|
|
public ResponseEntity<?> checkPasskeySupport(
|
|
public ResponseEntity<?> checkPasskeySupport(
|
|
|
- @PathVariable String userId,
|
|
|
|
|
|
|
+ @PathVariable("userId") String userId,
|
|
|
HttpServletRequest httpRequest,
|
|
HttpServletRequest httpRequest,
|
|
|
HttpServletResponse httpResponse) {
|
|
HttpServletResponse httpResponse) {
|
|
|
|
|
|