Skip to content

Commit

Permalink
fix(webauthn): schema regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 7, 2022
1 parent 271d5fa commit 970e861
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions selfservice/strategy/webauthn/.schema/login.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,43 @@
"minLength": 1
}
},
"required": [
"identifier"
"allOf": [
{
"if": {
"properties": {
"method": {
"const": "webauthn"
}
},
"required": [
"method"
]
},
"then": {
"required": [
"method",
"identifier"
]
}
},
{
"if": {
"properties": {
"webauthn_login": {
"type": "string",
"minLength": 1
}
},
"required": [
"webauthn_login"
]
},
"then": {
"required": [
"webauthn_login",
"identifier"
]
}
}
]
}

0 comments on commit 970e861

Please sign in to comment.