Implementing ApprovalAccessControlProvider throws Error #483
-
Hi, I am working on a .NET MAUI application that features Azure AD B2C for authentication and uses the DataSync library for data synchronization handled by a backend API (hosted on Azure) and a Azure SQL database. I followed the tutorial on Microsoft Docs and on your personal page for implementing the ApprovalAccessControlProvider so that a logged-in User only sees his own data. Now I am facing two challenges/errors I failed to solve myself.
{Microsoft.Datasync.Client.Offline.PushFailedException: Push operation has failed. See the PushResult for details. Inspecting the PushResult reveals the following: {"errors":{"userId":["The UserId field is required."]},"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-0834f5beb2dc3addc039848899684b46-ece7f3682c472112-00"}
Any idea how to solve these two issues? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Beta Was this translation helpful? Give feedback.
[Required]
attribute from the UserId field.