Skip to content

Wrap blind_rsa_signature's errors in RedeemTokenError #42

@jcjones

Description

@jcjones

While for security purposes it's good to not pass along the details of what's failed when redeeming a token, swallowing the error here without recourse does make debugging more difficult, particularly for upstream errors like UnsupportedParameters:

.map_err(|_| RedeemTokenError::InvalidToken)?;

Perhaps the error types could use some the thiserror #[from] or #[source] mechanisms to keep the underlying error details available?

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