A Guice-ready security framework?

后端 未结 2 697
梦如初夏
梦如初夏 2021-02-13 09:14

Has anybody seen a framework which is either written to work with Guice or a library that integrates an existing security system (ie: Acegi) with Guice?

I have found the

相关标签:
2条回答
  • 2021-02-13 09:44

    Apache Shiro 1.2 and later has native support for Guice applications:

    http://shiro.apache.org/guice.html

    HTH!

    0 讨论(0)
  • 2021-02-13 09:54

    For whatever it's worth (being quite a late answer), I've had success integrating Apache Shiro with Guice. Last time I checked, Acegi was too deeply dependent on Spring to be usable in a pure Guice solution. Shiro's documentation is a little lacking, but the API is pretty straight-forward and easy to use, if don't mind a little digging.


    In case it's of any interest, I've posted a Gist of the simplest example I could find. Two caveats:

    1. It's written against a pre-release version of Shiro 1.0
    2. The Active Directory realm we're using is a somewhat modified version from the main Shiro source, using some ideas from the Active Directory plugin for Jenkins (then Hudson).

    Hopefully, it's enough to get you started...

    0 讨论(0)
提交回复
热议问题