Skip to content

Commit

Permalink
Merge pull request #219 from bschoenmaeckers/master
Browse files Browse the repository at this point in the history
Add WebAuthn base exception
  • Loading branch information
MasterKale authored Jun 24, 2024
2 parents 3c04e48 + 36321d5 commit 34b0d99
Showing 1 changed file with 21 additions and 17 deletions.
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

0 comments on commit 34b0d99

Please sign in to comment.