-
Notifications
You must be signed in to change notification settings - Fork 228
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
Elide security layer implementation #750
Comments
Assuming you are using the JAX-RS servlet to expose Elide, you would write a JAX-RS You do that in a method like:
Make sure you are using the latest version of Elide (which passes the User object as the SecurityContext by default). Otherwise there is an extra step. |
I was looking at your documentation of elide framework and they are old and hence wanted to confirm with you. Once user is extracted from above step, do we have to use com.yahoo.elide.resources.JsonApiEndpoint to pass user to Entity layer in order to use security permission tags? |
You don't have to use the provided JAX-RS endpoints - but you would need to create something equivalent to them. I've hopefully addressed the documentation issue here: |
Thanks a million! Let me take a look and get back to you if any issue. Does Elide support Jpa or it requires emf.unwrap(SessionFactory.class); ? |
I'm not totally following the question although there is another pull request for a proper Jpa DataStore that's in review: |
Closing this issue since the documentation has been merged. |
I am using elide to expose the entity something like /book/{id}. We have 2 way ssl implemented. How to integrate elide security layer so that elide security permissions tags can be used. We have 2 way ssl handshake using x.509 certificate.
The text was updated successfully, but these errors were encountered: