Skip to content

AttributeError: 'UnicodeDecodeError' object has no attribute 'message' #87

@41WhiteElephants

Description

@41WhiteElephants

In FIDO2.py there's wrong code raising exception in exception handling block
image

Current:
image

Expected:

return HttpResponse(
            simplejson.dumps({"status": "ERR", "message": str(exp)}),
            content_type="application/json",
            status=400
        )

Steps to reproduce:
call fido2_complete_auth endpoint with some random bytes encoded into payload before cbor.encode call

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions