CZ-NIC / django-fido

Django application for FIDO protocol U2F
GNU General Public License v3.0
28 stars 11 forks source link

Display server side errors in form #51

Closed stinovlas closed 4 years ago

stinovlas commented 4 years ago

When some kind of error occurs on the server side, django-fido simply displays An unknown error has occurred. message.

However, server often sends detailed message about what happened. E.g. when user has no authenticators, server returns status code 404 with response:

{"error": "Can't create FIDO 2 authentication request, no authenticators."}

This message would be much more helpful for the user. It's necessary to handle the translations as well.