This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Authenticated App - how do I associate records with user? #590
-
I have some old Azure Mobile Services app that I want to upgrade. I used the following code in my Node.JS backend to record the user with my table rows:
Now I am using the ASP.NET 6 backend with the Microsoft.AspNetCore.DataSync and Microsoft.AspNetCore.DataSync.EFCore packages. I have figured out how to override the CreateAsync method like below:
The question is how do I inject the user Id from the authentication into the CreateAsync method? |
Beta Was this translation helpful? Give feedback.
Answered by
adrianhall
Feb 6, 2023
Replies: 1 comment 8 replies
Answer selected by
adrianhall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://learn.microsoft.com/en-us/azure/developer/mobile-apps/azure-mobile-apps/howto/server/dotnet-core#configure-access-permissions