blob: 3dea3f767389a02c5cfb47b7b9fdf09e44ca0c4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
class SRPAuthenticationError(Exception):
"""
Exception raised for authentication errors
"""
pass
class SRPAuthConnectionError(SRPAuthenticationError):
"""
Exception raised when there's a connection error
"""
pass
class SRPAuthBadStatusCode(SRPAuthenticationError):
"""
Exception raised when we received an unknown bad status code
"""
pass
class SRPAuthNoSalt(SRPAuthenticationError):
"""
Exception raised when we don't receive the salt param at a
specific point in the auth process
"""
pass
class SRPAuthNoB(SRPAuthenticationError):
"""
Exception raised when we don't receive the B param at a specific
point in the auth process
"""
pass
class SRPAuthBadDataFromServer(SRPAuthenticationError):
"""
Generic exception when we receive bad data from the server.
"""
pass
class SRPAuthBadUserOrPassword(SRPAuthenticationError):
"""
Exception raised when the user provided a bad password to auth.
"""
pass
class SRPAuthVerificationFailed(SRPAuthenticationError):
"""
Exception raised when we can't verify the SRP data received from
the server.
"""
pass
class SRPAuthNoSessionId(SRPAuthenticationError):
"""
Exception raised when we don't receive a session id from the
server.
"""
pass
|