Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WebAuthn base exception #219

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 21 additions & 17 deletions webauthn/helpers/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,66 +1,70 @@
class InvalidRegistrationOptions(Exception):
class WebAuthnException(Exception):
pass


class InvalidRegistrationResponse(Exception):
class InvalidRegistrationOptions(WebAuthnException):
pass


class InvalidAuthenticationOptions(Exception):
class InvalidRegistrationResponse(WebAuthnException):
pass


class InvalidAuthenticationResponse(Exception):
class InvalidAuthenticationOptions(WebAuthnException):
pass


class InvalidPublicKeyStructure(Exception):
class InvalidAuthenticationResponse(WebAuthnException):
pass


class UnsupportedPublicKeyType(Exception):
class InvalidPublicKeyStructure(WebAuthnException):
pass


class InvalidJSONStructure(Exception):
class UnsupportedPublicKeyType(WebAuthnException):
pass


class InvalidAuthenticatorDataStructure(Exception):
class InvalidJSONStructure(WebAuthnException):
pass


class SignatureVerificationException(Exception):
class InvalidAuthenticatorDataStructure(WebAuthnException):
pass


class UnsupportedAlgorithm(Exception):
class SignatureVerificationException(WebAuthnException):
pass


class UnsupportedPublicKey(Exception):
class UnsupportedAlgorithm(WebAuthnException):
pass


class UnsupportedEC2Curve(Exception):
class UnsupportedPublicKey(WebAuthnException):
pass


class InvalidTPMPubAreaStructure(Exception):
class UnsupportedEC2Curve(WebAuthnException):
pass


class InvalidTPMCertInfoStructure(Exception):
class InvalidTPMPubAreaStructure(WebAuthnException):
pass


class InvalidCertificateChain(Exception):
class InvalidTPMCertInfoStructure(WebAuthnException):
pass


class InvalidBackupFlags(Exception):
class InvalidCertificateChain(WebAuthnException):
pass


class InvalidCBORData(Exception):
class InvalidBackupFlags(WebAuthnException):
pass


class InvalidCBORData(WebAuthnException):
pass
Loading