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

Is spring integration supported/planned? #44

Open
jarey opened this issue Jun 10, 2017 · 3 comments
Open

Is spring integration supported/planned? #44

jarey opened this issue Jun 10, 2017 · 3 comments
Labels

Comments

@jarey
Copy link

jarey commented Jun 10, 2017

Hello,

It seems that OACC follows an interesting approach to seucirty and permissions management. Would it support spring integration out of the box? Correct me if i'm wrong and it is already supported, because i haven't digged enought into the framework yet.

Thanks in advance

@WerVbn
Copy link

WerVbn commented Jun 20, 2017

I would like to know that too. I would like to secure a REST-API build with Spring and use OACC for permission management. Could someone please provide me with information how to start to use OACC in spring?

@fspinnenhirn
Copy link
Member

The quick answer is that there is no reason why you couldn't use OACC within a Spring application or any other framework to build REST APIs. In fact, the SecureTodo sample application provides a simplistic example of a RESTful application, to illustrate some of the core OACC concepts (but using Dropwizard instead of Spring).
On the other hand, if you're looking for integration that ties directly into Spring and would let you use Spring annotations on top of an OACC backend, for example, then I'm not aware of any such project that provides this out of the box, at this time. I'm honestly interested to see how far such an integration can be taken, but haven't had time to play with that idea, myself. So if you do find something - or decide to develop it yourself, please share!

@WerVbn
Copy link

WerVbn commented Jun 27, 2017

In spring, you have to add a custom authentication provider in order to authenticate and to create an access control context with OACC. You can pass the OACC context back from the custom authentication provider to your controller/service to start using the framework for authorization purposes.

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

3 participants