Use of Shiro in a micro-services environment

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Use of Shiro in a micro-services environment

Debug82
Good day,

I wuld like to know if there is any experience (examples) in using Shiro in
a micro-services environment.
I have a micro-service implementing Shiro functionalities (custom realms,
...etc) which should communicate with the external world through REST

1- What would be the best practices for such implementation? any examples
will be more than welcome
2- How can other micro-services (external world) benefit from Shiro
annotations to secure their services (while not sharing the same context)?
3- How can user / subject binding be performed?

Thanks in advance

Regards





--
Sent from: http://shiro-user.582556.n2.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Use of Shiro in a micro-services environment

Sashika
Whats is the microservice framework that you use for developing reactive microservices? Is it Vert.X or Spring Boot or any other?

For example with Vert.X this is pretty straightforward. Read on if you are interested in how this is possible with Vert.X

1. You create an instance of Shiro auth provider providing the required settings
2. Add the newly created auth provider to the request handler

For more information please follow

And then read the following to get an idea of how Shiro auth provider can be integrated to Vert.X web.

Hope this will be of some help

Regards
xp


On Wed, May 2, 2018 at 4:47 PM, Debug82 <[hidden email]> wrote:
Good day,

I wuld like to know if there is any experience (examples) in using Shiro in
a micro-services environment.
I have a micro-service implementing Shiro functionalities (custom realms,
...etc) which should communicate with the external world through REST

1- What would be the best practices for such implementation? any examples
will be more than welcome
2- How can other micro-services (external world) benefit from Shiro
annotations to secure their services (while not sharing the same context)?
3- How can user / subject binding be performed?

Thanks in advance

Regards





--
Sent from: http://shiro-user.582556.n2.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Use of Shiro in a micro-services environment

Debug82
Hi Sashika,

Thanks for your answer.

The framework I am using is Spring Boot.
Any example, documentation, or idea will be more than welcome

Regards



--
Sent from: http://shiro-user.582556.n2.nabble.com/