Skip to content

Commit

Permalink
fix: Grant providers should allow null responses for deferred challen…
Browse files Browse the repository at this point in the history
…ges (#128)
  • Loading branch information
kpears201 committed Jun 2, 2023
1 parent 41cd462 commit 0ddd11a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 15 additions & 2 deletions src/openrpc/acknowledge_challenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,26 @@
],
"properties": {
"granted": {
"type": "boolean",
"description": "Whether the user approved or denied the challenge"
"oneOf": [
{
"type": "boolean",
"description": "Whether the user approved or denied the challenge"
},
{
"const": null
}
]
}
},
"examples": [
{
"granted": true
},
{
"granted": false
},
{
"granted": null
}
]
}
Expand Down
15 changes: 13 additions & 2 deletions src/openrpc/pin_challenge.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
},
{
"granted": false,
"reason": "exceededPinFailures"
},
{
"granted": null,
"reason": "cancelled"
}
]
Expand Down Expand Up @@ -149,8 +153,15 @@
],
"properties": {
"granted": {
"type": "boolean",
"description": "Whether the user succeeded in the pin challenge"
"oneOf": [
{
"type": "boolean",
"description": "Whether the user succeeded in the pin challenge"
},
{
"const": null
}
]
},
"reason": {
"$ref": "#/components/schemas/ResultReason",
Expand Down

0 comments on commit 0ddd11a

Please sign in to comment.