You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schemas/dab.draft.schema.json
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,28 @@
61
61
"maximum": 2147483647
62
62
}
63
63
}
64
+
},
65
+
"user-delegated-auth": {
66
+
"description": "User-delegated authentication configuration for On-Behalf-Of (OBO) flow. Enables DAB to connect to the database using the calling user's identity.",
Copy file name to clipboardExpand all lines: src/Config/DataApiBuilderException.cs
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,11 @@ public class DataApiBuilderException : Exception
20
20
publicconststringGRAPHQL_MUTATION_FIELD_AUTHZ_FAILURE="Unauthorized due to one or more fields in this mutation.";
21
21
publicconststringGRAPHQL_GROUPBY_FIELD_AUTHZ_FAILURE="Access forbidden to field '{0}' referenced in the groupBy argument.";
22
22
publicconststringGRAPHQL_AGGREGATION_FIELD_AUTHZ_FAILURE="Access forbidden to field '{0}' referenced in the aggregation function '{1}'.";
23
+
publicconststringOBO_IDENTITY_CLAIMS_MISSING="User-delegated authentication failed: Neither 'oid' nor 'sub' claim found in the access token.";
24
+
publicconststringOBO_TENANT_CLAIM_MISSING="User-delegated authentication failed: 'tid' (tenant id) claim not found in the access token.";
25
+
publicconststringOBO_TOKEN_ACQUISITION_FAILED="User-delegated authentication failed: Unable to acquire database access token on behalf of the user.";
26
+
publicconststringOBO_MISSING_USER_CONTEXT="User-delegated authentication failed: Missing or invalid 'Authorization: Bearer <token>' header. OBO requires a valid user token to exchange for database access.";
27
+
publicconststringOBO_MISSING_DATABASE_AUDIENCE="User-delegated authentication failed: 'database-audience' is not configured in the data source's user-delegated-auth settings.";
23
28
24
29
publicenumSubStatusCodes
25
30
{
@@ -127,7 +132,11 @@ public enum SubStatusCodes
127
132
/// <summary>
128
133
/// Error due to client input validation failure.
129
134
/// </summary>
130
-
DatabaseInputError
135
+
DatabaseInputError,
136
+
/// <summary>
137
+
/// User-delegated (OBO) authentication failed due to missing identity claims.
0 commit comments