-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Milestone
Description
Having this endpoint unprotected is not a good idea:
- If the Issuer returns the same nonce every time this makes the nonce publicly available to anyone, which makes it completely useless. Moreover, clause 7.2 states that "This value MUST be unpredictable." so I am not sure if it is therefore required to have a new nonce with every call.
- If the Issuer returns a different nonce with every call this makes it an attack vector because the nonce database would grow continuously and the service could be vulnerable to a DoS. This would also make it difficult to search for a nonce when receiving it in the credential request.
This endpoint should be protected with the access token that the wallet just obtained, just like the credential endpoint. Thus, the nonce would be also linked to a specific wallet which would make it simple for the Issuer to match the nonce when receiving it in the subsequent credential request.
Also, it would make more sense for this endpoint to implement a GET method instead of a POST.
MattiasLass, Fethbita, ipaljak-tbtl and svenstucki-pcv