Find Jobs
Hire Freelancers

Row level security with Entity Framework

$10-30 CAD

Fechado
Publicado há aproximadamente 3 anos

$10-30 CAD

Pago na entrega
I'm in the process of building a website (MVP) for a client of mine. I'm looking for an expert in .NET core 3.1 who can help implement row level security with EF. The site already has user registration and login built in with .NET Core Identity and JWT. I already got users and roles created. I need to expand the security model in a way I can assign multiple clients to a user. After login the user should only see the assigned client's information. I'm looking to accomplish this by the use of Global Query Filters. Client and User model exists. Need help to add Client to User assignment model and then implement the query filter. If this projects is a success there will be additional work. In your bid please indicate how would you implement this solution and include any prior multitenant project you worked on. I would like to provide a bit more details to see if you would be comfortable with the requirements. The MVP was mainly built based on the below guide [login to view URL] What I'm looking to incorporate is described in this article [login to view URL] It seems like the best way to implement user level filtering is via Global Query Filters Currently there is a Company model. Also the default identity models. I would like to have a new model created something like CompanyUserAccess. This model (table) would have CompanyID and the ID from the AspNetUsers table. What I would like to have is a global filter which would take the list of CmpanyIDs assigned to the logged in user. This way a user would only see the companies that is assigned. The Project is in AngularTS and .NETCORE very simple just aspnetusers login , registration and company listing functionality is there currently. Have a nice day!
ID do Projeto: 29416484

Sobre o projeto

1 proposta
Projeto remoto
Ativo há 3 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
1 freelancers estão ofertando em média $30 CAD for esse trabalho
Avatar do Usuário
Hi there, If it is a simple project, just make a field where clients could be typed/picked up, then upon adding/updating validate that these clients actually exist and then extract their Ids and store them comma separated inside the User record. This way you avoid extra association table. Then when you access the data, extract those Ids from a user record, add them to EF query, provided that those data records somehow associated with the client (having client Id directly or via some relation). I've done it this way multiple times, should you be interested I can show you the code privately. Regards, Sergii
$30 CAD em 7 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) INDIA
Surat, India
4,8
10
Membro desde ago. 19, 2017

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.