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

Security layer #9

Open
aerben opened this issue Apr 5, 2014 · 2 comments
Open

Security layer #9

aerben opened this issue Apr 5, 2014 · 2 comments
Assignees
Labels

Comments

@aerben
Copy link
Contributor

aerben commented Apr 5, 2014

Right now, we only have a very rudimentary user profile entity and no security for our REST interface. That'll have to change soon.
Which security framework for our REST interface should we use?

@headcr4sh
Copy link
Member

I think for role-based security constraints we can already rely on container-managed roles via @javax.annotation.security.* annotations.
They should be working out of the box or can be enabled easily by modifying the RestApplication class in the fx-pastebin-server module.

For fine-grained stuff (e.g. a user should be able to change his/her own profile but not the profile of another user) we might rely on the SecurityContext that JAX-RS2.0 has to offer: https://jersey.java.net/documentation/latest/security.html (documentation of the JAX-RS reference implementation [RI] a.k.a. "Jersey").

Maybe a filter ( https://jersey.java.net/documentation/latest/filters-and-interceptors.html) might be all that is needed for fine-grained access control...

@aerben
Copy link
Contributor Author

aerben commented Apr 6, 2014

We could also use Spring Security which I already know quite well. But I'll have a closer look into the links you posted - maybe the JAX-RS-solutions are suited well enough. SS would have the disadvantage of the (small) Spring Container overhead - and we would stray from the just-Java EE-path.

@aerben aerben self-assigned this Apr 6, 2014
@aerben aerben added the roadmap label Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants