-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthenticationErrors.cs
More file actions
59 lines (48 loc) · 1.82 KB
/
AuthenticationErrors.cs
File metadata and controls
59 lines (48 loc) · 1.82 KB
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
namespace HttpsRichardy.Federation.Domain.Errors;
public static class AuthenticationErrors
{
public static readonly Error InvalidTokenFormat = new(
Code: "#ERROR-32B37",
Description: "The token format is invalid or the token is malformed."
);
public static readonly Error TokenExpired = new(
Code: "#ERROR-5F736",
Description: "The token has expired."
);
public static readonly Error InvalidSignature = new(
Code: "#ERROR-FB8E4",
Description: "The token signature is invalid."
);
public static readonly Error InvalidIssuer = new(
Code: "#ERROR-1A9C3",
Description: "The token issuer is invalid."
);
public static readonly Error InvalidRefreshToken = new(
Code: "#ERROR-2C0D9",
Description: "The provided refresh token is invalid, expired, or has already been used."
);
public static readonly Error LogoutFailed = new(
Code: "#ERROR-60CBC",
Description: "Logout failed: the refresh token is invalid, expired, or has already been used."
);
public static readonly Error InvalidCredentials = new(
Code: "#ERROR-A7E7C",
Description: "The provided credentials are invalid."
);
public static readonly Error ClientNotFound = new(
Code: "#ERROR-0AF50",
Description: "The client was not found."
);
public static readonly Error InvalidClientCredentials = new(
Code: "#ERROR-D5D7C",
Description: "The provided client credentials are invalid."
);
public static readonly Error Unauthenticated = new(
Code: "#ERROR-9B3E1",
Description: "Does not contain valid authentication credentials."
);
public static readonly Error UserNotFound = new(
Code: "#ERROR-04A2F",
Description: "The user was not found."
);
}