You need a Realm that calls your web service. Realms can be backed by
anything you need. DB, file, web service, etc.

Here is an example.
http://svn.apache.org/repos/asf/shiro/tags/shiro-root-1.2.2/samples/spring-hibernate/src/main/java/org/apache/shiro/samples/sprhib/security/SampleRealm.java

Just implement an instance of UserDAO that calls your web service.


On 19 February 2014 09:52, yagofp8 <[email protected]> wrote:

> Thanks Dominic Farr :)
>
> And regarding the other question, my problem is that I'm trying to create a
> Realm(not sure if it is the best option), where I should use the username
> and password(that is encrypted here and I can not use it) to do a GET to
> the
> REST service and depending on the response, the login is ok or not.
>
> Any idea if it is possible to do it and how?
>
> Thanks again
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/Rest-Service-for-authentication-tp7579660p7579662.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to