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

Criação do mecanismo para seguraça baseado em URLMapping #70

Open
clovisjunior opened this issue Mar 3, 2017 · 0 comments
Open

Criação do mecanismo para seguraça baseado em URLMapping #70

clovisjunior opened this issue Mar 3, 2017 · 0 comments

Comments

@clovisjunior
Copy link
Member

Possibilitar que o desenvolvedor possa escolher entre o mecanismo atual de restrição de acesso baseado na anotação @authentication e um mecanismo baseado em mapeamento por URL.

Ex:
Arquivo demoiselle-security.propreties

demoiselle.security.mechanism.type=URL_MAPPING # ou ANNOTATION
demoiselle.security.url_mapping = [
    '*'          : 'all',
    '/products : 'ROLE_USERS, ROLE_X, ROLE_ADMIN',
    '/products/edit/* : 'ROLE_ADMIN',
    ......
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants