Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementar validação de regra via claims #2

Closed
frederickfrigieri opened this issue Apr 28, 2021 · 2 comments
Closed

Implementar validação de regra via claims #2

frederickfrigieri opened this issue Apr 28, 2021 · 2 comments
Assignees

Comments

@frederickfrigieri
Copy link
Owner

No description provided.

@frederickfrigieri frederickfrigieri self-assigned this Apr 28, 2021
@frederickfrigieri
Copy link
Owner Author

Criar uma data annotation para colocar na controller aonde eu passo a chave e o valor e ele confere com dados nas claims do meu usuário logado e valida se está de acordo

ex:

[ValidaAcesso("chave", "valor")
public IActionResult Postar()

@frederickfrigieri
Copy link
Owner Author

Finalizado

Criei um Attribute para ler o conteudo da claim e interceptei pelo Filter de Attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant