-
-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webauthn): add new decoder schemas
- Loading branch information
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
selfservice/strategy/webauthn/.schema/registration.schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$id": "https://schemas.ory.sh/kratos/selfservice/strategy/password/registration.schema.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"csrf_token": { | ||
"type": "string" | ||
}, | ||
"traits": { | ||
"description": "This field will be overwritten in registration.go's decoder() method. Do not add anything to this field as it has no effect." | ||
}, | ||
"method": { | ||
"type": "string" | ||
}, | ||
"webauthn_register": { | ||
"type": "string" | ||
}, | ||
"webauthn_register_displayname": { | ||
"type": "string" | ||
} | ||
}, | ||
"oneOf": [ | ||
{ | ||
"required": [ | ||
"webauthn_register" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"identifier", | ||
"method" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters