-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror-codes.yaml
More file actions
218 lines (185 loc) · 6.39 KB
/
Copy patherror-codes.yaml
File metadata and controls
218 lines (185 loc) · 6.39 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# UMS SDK — Canonical Error Codes Catalog
# Governed by ADR-0073 (SDK) and ADR-0066 (Actionable User Error Contract).
# Codes are stable strings; never reused. New codes added via MINOR bump.
# Deprecated codes remain listed with `deprecated: true`.
schemaVersion: "1.0.0"
categories:
- id: authentication
range: "AUTH_001..AUTH_010"
description: "Server-emitted errors raised during the authentication flow."
- id: idp-resolution
range: "AUTH_011..AUTH_019"
description: "Server-emitted errors raised while resolving the active IDP for a tenant."
- id: authorization
range: "AUTH_100..AUTH_199"
description: "SDK-emitted errors for declarative authorization decisions."
- id: graph-lifecycle
range: "AUTH_200..AUTH_299"
description: "SDK-emitted errors for graph validity, schema compatibility and lifecycle."
codes:
# --- Authentication (server-emitted) -------------------------------------
- code: AUTH_001
httpStatus: 400
title: "Validation error"
message: "Required fields missing or malformed."
emittedBy: [server, sdk]
deprecated: false
- code: AUTH_002
httpStatus: 404
title: "Tenant not found"
message: "The supplied tenant code did not match any registered tenant."
emittedBy: [server]
deprecated: false
- code: AUTH_003
httpStatus: 403
title: "Tenant not active"
message: "The tenant is suspended or archived."
emittedBy: [server]
deprecated: false
- code: AUTH_004
httpStatus: 401
title: "IDP user has no UMS account"
message: "The IDP-asserted identity has no matching UserAccount in UMS."
emittedBy: [server]
deprecated: false
- code: AUTH_005
httpStatus: 403
title: "User not active"
message: "The UserAccount status is not ACTIVE."
emittedBy: [server]
deprecated: false
- code: AUTH_006
httpStatus: 401
title: "Invalid credentials"
message: "BCrypt verification failed for the supplied password."
emittedBy: [server]
deprecated: false
- code: AUTH_007
httpStatus: 423
title: "Account locked"
message: "The account is locked due to max login attempts exceeded."
emittedBy: [server]
deprecated: false
- code: AUTH_008
httpStatus: 401
title: "MFA challenge required"
message: "MFA challenge is required but was not provided."
emittedBy: [server]
deprecated: false
- code: AUTH_009
httpStatus: 401
title: "MFA challenge failed"
message: "The supplied MFA challenge could not be verified."
emittedBy: [server]
deprecated: false
- code: AUTH_010
httpStatus: 401
title: "Session expired"
message: "The session has expired and must be re-established."
emittedBy: [server]
deprecated: false
# --- IDP resolution (server-emitted) ------------------------------------
- code: AUTH_011
httpStatus: 503
title: "No active IDP configured"
message: "Tenant is configured for IDP authentication but no active provider exists."
emittedBy: [server]
deprecated: false
- code: AUTH_012
httpStatus: 501
title: "No IDP adapter registered"
message: "No IIdpAuthAdapter is registered for the provider's strategy name."
emittedBy: [server]
deprecated: false
- code: AUTH_013
httpStatus: 502
title: "IDP call failed"
message: "The external IDP authentication call failed (network or provider error)."
emittedBy: [server]
deprecated: false
- code: AUTH_014
httpStatus: 401
title: "IDP token validation failed"
message: "The IDP token signature, expiry or issuer did not validate."
emittedBy: [server]
deprecated: false
# --- Authorization (SDK-emitted) ----------------------------------------
- code: AUTH_101
title: "Scope not granted"
message: "The required scope is not present in the user's authorization graph."
primitive: RequiresScope
emittedBy: [sdk]
deprecated: false
- code: AUTH_102
title: "Scope explicitly denied"
message: "The required scope is explicitly denied in the user's authorization graph."
primitive: RequiresScope
emittedBy: [sdk]
deprecated: false
- code: AUTH_103
title: "Menu option not granted"
message: "The required menu option resolves to NotGranted."
primitive: RequiresMenuOption
emittedBy: [sdk]
deprecated: false
- code: AUTH_104
title: "Menu option denied"
message: "The required menu option resolves to Deny."
primitive: RequiresMenuOption
emittedBy: [sdk]
deprecated: false
- code: AUTH_105
title: "Domain access not granted"
message: "The required domain resource/action resolves to NotGranted."
primitive: RequiresDomainAccess
emittedBy: [sdk]
deprecated: false
- code: AUTH_106
title: "Domain access denied"
message: "The required domain resource/action resolves to Deny."
primitive: RequiresDomainAccess
emittedBy: [sdk]
deprecated: false
- code: AUTH_107
title: "Feature flag disabled"
message: "The required feature flag is present but isEnabled is false."
primitive: RequiresFeatureFlag
emittedBy: [sdk]
deprecated: false
- code: AUTH_108
title: "Feature flag not found"
message: "The required feature flag is not present in featureFlags[]."
primitive: RequiresFeatureFlag
emittedBy: [sdk]
deprecated: false
- code: AUTH_109
title: "Tenant mismatch"
message: "The expected tenant code does not match the tenant in the authorization graph."
emittedBy: [sdk]
deprecated: false
# --- Graph lifecycle (SDK-emitted) --------------------------------------
- code: AUTH_201
title: "Authorization graph expired"
message: "The graph's validUntil timestamp is in the past."
emittedBy: [sdk]
deprecated: false
- code: AUTH_202
title: "Authorization graph missing"
message: "No authorization graph is available in the current accessor scope."
emittedBy: [sdk]
deprecated: false
- code: AUTH_203
title: "Authorization graph malformed"
message: "The graph failed JSON Schema validation."
emittedBy: [sdk]
deprecated: false
- code: AUTH_204
title: "Schema version missing"
message: "The graph payload does not declare a schemaVersion."
emittedBy: [sdk]
deprecated: false
- code: AUTH_205
title: "Schema version unsupported"
message: "The graph's MAJOR schema version is outside the SDK's compatibility range."
emittedBy: [sdk]
deprecated: false