@@ -2412,7 +2412,7 @@ paths:
2412
2412
expectedValue : val
2413
2413
actualValue : claimVal
2414
2414
2415
- /{apiBasePath}/<tenantId>/webauthn/register/ options :
2415
+ /{apiBasePath}/<tenantId>/webauthn/options/register :
2416
2416
post :
2417
2417
tags :
2418
2418
- WebAuthn Recipe
@@ -2451,6 +2451,18 @@ paths:
2451
2451
schema :
2452
2452
oneOf :
2453
2453
- type : object
2454
+ required :
2455
+ - webauthnGeneratedOptionsId
2456
+ - createdAt
2457
+ - expiresAt
2458
+ - rp
2459
+ - user
2460
+ - challenge
2461
+ - timeout
2462
+ - excludeCredentials
2463
+ - attestation
2464
+ - pubKeyCredParams
2465
+ - authenticatorSelection
2454
2466
properties :
2455
2467
status :
2456
2468
$ref : ' #/components/schemas/statusOK'
@@ -2465,6 +2477,9 @@ paths:
2465
2477
example : " 2024-03-20T10:05:00Z"
2466
2478
rp :
2467
2479
type : object
2480
+ required :
2481
+ - id
2482
+ - name
2468
2483
properties :
2469
2484
id :
2470
2485
type : string
@@ -2474,6 +2489,10 @@ paths:
2474
2489
example : " Example Site"
2475
2490
user :
2476
2491
type : object
2492
+ required :
2493
+ - id
2494
+ - name
2495
+ - displayName
2477
2496
properties :
2478
2497
id :
2479
2498
type : string
@@ -2494,6 +2513,10 @@ paths:
2494
2513
type : array
2495
2514
items :
2496
2515
type : object
2516
+ required :
2517
+ - id
2518
+ - type
2519
+ - transports
2497
2520
properties :
2498
2521
id :
2499
2522
type : string
@@ -2512,15 +2535,22 @@ paths:
2512
2535
type : array
2513
2536
items :
2514
2537
type : object
2538
+ required :
2539
+ - alg
2540
+ - type
2515
2541
properties :
2516
2542
alg :
2517
2543
type : number
2518
2544
example : -7
2519
2545
type :
2520
2546
type : string
2521
- example : " public-key"
2547
+ enum : [ "public-key"]
2522
2548
authenticatorSelection :
2523
2549
type : object
2550
+ required :
2551
+ - requireResidentKey
2552
+ - residentKey
2553
+ - userVerification
2524
2554
properties :
2525
2555
requireResidentKey :
2526
2556
type : boolean
@@ -2549,7 +2579,7 @@ paths:
2549
2579
' 500 ' :
2550
2580
$ref : ' #/components/responses/500'
2551
2581
2552
- /{apiBasePath}/<tenantId>/webauthn/signin/ options :
2582
+ /{apiBasePath}/<tenantId>/webauthn/options/signin :
2553
2583
post :
2554
2584
tags :
2555
2585
- WebAuthn Recipe
@@ -2957,6 +2987,154 @@ paths:
2957
2987
$ref : ' #/components/responses/404'
2958
2988
' 500 ' :
2959
2989
$ref : ' #/components/responses/500'
2990
+ /{apiBasePath}/<tenantId>/user/webauthn/reset/token :
2991
+ post :
2992
+ tags :
2993
+ - WebAuthn Recipe
2994
+ operationId : webauthnResetToken
2995
+ description : |
2996
+ Reset a WebAuthn account
2997
+ parameters :
2998
+ - $ref : ' #/components/parameters/apiBasePath'
2999
+ - $ref : ' #/components/parameters/webauthnRid'
3000
+ requestBody :
3001
+ required : true
3002
+ content :
3003
+ application/json :
3004
+ schema :
3005
+ type : object
3006
+ required :
3007
+ - email
3008
+ properties :
3009
+ email :
3010
+ type : string
3011
+ responses :
3012
+ ' 200 ' :
3013
+ description : Reset token response
3014
+ content :
3015
+ application/json :
3016
+ schema :
3017
+ oneOf :
3018
+ - type : object
3019
+ required :
3020
+ - status
3021
+ properties :
3022
+ status :
3023
+ type : string
3024
+ enum : [OK]
3025
+
3026
+ - type : object
3027
+ required :
3028
+ - status
3029
+ - message
3030
+ properties :
3031
+ status :
3032
+ type : string
3033
+ enum : [GENERAL_ERROR]
3034
+ message :
3035
+ type : string
3036
+
3037
+ - type : object
3038
+ required :
3039
+ - status
3040
+ - reason
3041
+ properties :
3042
+ status :
3043
+ type : string
3044
+ enum : [RECOVER_ACCOUNT_NOT_ALLOWED]
3045
+ reason :
3046
+ type : string
3047
+ ' 404 ' :
3048
+ $ref : ' #/components/responses/404'
3049
+ ' 500 ' :
3050
+ $ref : ' #/components/responses/500'
3051
+
3052
+ /{apiBasePath}/<tenantId>/user/webauthn/reset :
3053
+ post :
3054
+ tags :
3055
+ - WebAuthn Recipe
3056
+ operationId : webauthnReset
3057
+ description : |
3058
+ Reset a WebAuthn account
3059
+ parameters :
3060
+ - $ref : ' #/components/parameters/apiBasePath'
3061
+ - $ref : ' #/components/parameters/webauthnRid'
3062
+ requestBody :
3063
+ required : true
3064
+ content :
3065
+ application/json :
3066
+ schema :
3067
+ type : object
3068
+ required :
3069
+ - token
3070
+ - webauthnGeneratedOptionsId
3071
+ - credential
3072
+ properties :
3073
+ token :
3074
+ type : string
3075
+ webauthnGeneratedOptionsId :
3076
+ type : string
3077
+ credential :
3078
+ $ref : ' #/components/schemas/registrationPayload'
3079
+ responses :
3080
+ ' 200 ' :
3081
+ description : WebAuthn account reset response
3082
+ content :
3083
+ application/json :
3084
+ schema :
3085
+ oneOf :
3086
+ - type : object
3087
+ required :
3088
+ - status
3089
+ - user
3090
+ - email
3091
+ properties :
3092
+ status :
3093
+ type : string
3094
+ enum : [OK]
3095
+ user :
3096
+ $ref : ' #/components/schemas/user'
3097
+ email :
3098
+ type : string
3099
+
3100
+ - type : object
3101
+ required :
3102
+ - status
3103
+ - message
3104
+ properties :
3105
+ status :
3106
+ type : string
3107
+ enum : [GENERAL_ERROR]
3108
+ message :
3109
+ type : string
3110
+
3111
+ - type : object
3112
+ required :
3113
+ - status
3114
+ properties :
3115
+ status :
3116
+ type : string
3117
+ enum :
3118
+ - RECOVER_ACCOUNT_TOKEN_INVALID_ERROR
3119
+ - INVALID_CREDENTIALS_ERROR
3120
+ - OPTIONS_NOT_FOUND_ERROR
3121
+ - INVALID_OPTIONS_ERROR
3122
+
3123
+ - type : object
3124
+ required :
3125
+ - status
3126
+ - reason
3127
+ properties :
3128
+ status :
3129
+ type : string
3130
+ enum : [INVALID_AUTHENTICATOR_ERROR]
3131
+ reason :
3132
+ type : string
3133
+
3134
+ ' 404 ' :
3135
+ $ref : ' #/components/responses/404'
3136
+ ' 500 ' :
3137
+ $ref : ' #/components/responses/500'
2960
3138
2961
3139
components :
2962
3140
parameters :
@@ -3490,6 +3668,22 @@ components:
3490
3668
type : string
3491
3669
enum :
3492
3670
- Not Found
3671
+
3672
+ clientExtensionResults :
3673
+ type : object
3674
+ properties :
3675
+ appid :
3676
+ type : boolean
3677
+ example : true
3678
+ credProps :
3679
+ type : object
3680
+ properties :
3681
+ rk :
3682
+ type : boolean
3683
+ example : true
3684
+ hmacCreateSecret :
3685
+ type : boolean
3686
+ example : true
3493
3687
3494
3688
registrationPayload :
3495
3689
type : object
@@ -3509,8 +3703,8 @@ components:
3509
3703
type : string
3510
3704
enum : ["platform", "cross-platform"]
3511
3705
clientExtensionResults :
3512
- type : object
3513
- additionalProperties : true
3706
+ $ref : ' #/components/schemas/clientExtensionResults '
3707
+
3514
3708
response :
3515
3709
type : object
3516
3710
required :
@@ -3559,8 +3753,7 @@ components:
3559
3753
type : string
3560
3754
enum : ["platform", "cross-platform"]
3561
3755
clientExtensionResults :
3562
- type : object
3563
- additionalProperties : true
3756
+ $ref : ' #/components/schemas/clientExtensionResults'
3564
3757
response :
3565
3758
type : object
3566
3759
required :
0 commit comments