问题
What is the best way to integrate social authentication with Apache Shiro?
I've search this site as other sites and couldn't find an answer.
回答1:
You can have a look at this tutorial: http://mrdwnotes.wordpress.com/2011/11/28/using-apache-shiro-security-to-allow-login-via-facebook-part-2/
It explains how use Shiro to allow Facebook authentication.
回答2:
I would recommend using the official extension: https://github.com/bujiio/buji-pac4j which supports OAuth (Facebook, Twitter, Google...), CAS, SAML, OpenID (Connect) and GAE. See the demo: https://github.com/pac4j/buji-pac4j-demo
来源:https://stackoverflow.com/questions/16076398/social-authentication-with-apache-shiro