首页 > 其他 > 详细

【pac4j】OAuth 认证机制 入门篇

时间:2017-04-27 15:12:49      阅读:2716      评论:0      收藏:0      [点我收藏+]

1,pac4j是什么?

pac4j是一个支持多种支持多种协议的身份认证的Java客户端。

2,pac4j的12种客户端认证机制:目前我只有用过第一和第八种。

  1. OAuth (1.0 & 2.0): Facebook, Twitter, Google, Yahoo, LinkedIn, Github... using the pac4j-oauth module

  2. CAS (1.0, 2.0, SAML, logout & proxy) + REST API support using the pac4j-cas module

  3. HTTP (form, basic auth, IP, header, GET/POST parameter authentications) using the pac4j-http module

  4. OpenID using the pac4j-openid module

  5. SAML (2.0) using the pac4j-saml module

  6. Google App Engine UserService using the pac4j-gae module

  7. OpenID Connect 1.0 using the pac4j-oidc module

  8. JWT using the pac4j-jwt module

  9. LDAP using the pac4j-ldap module

  10. relational DB using the pac4j-sql module

  11. MongoDB using the pac4j-mongo module

  12. Stormpath using the pac4j-stormpath module.

 

技术分享

3,maven配置

技术分享
 1             <dependency>
 2                 <groupId>org.pac4j</groupId>
 3                 <artifactId>spring-security-pac4j</artifactId>
 4                 <version>1.4.3</version>
 5             </dependency>
 6             <dependency>
 7                 <groupId>org.pac4j</groupId>
 8                 <artifactId>pac4j-oauth</artifactId>
 9                 <version>1.8.8</version>
10             </dependency>
View Code

主要是三个jar包:

技术分享

 

4,下面是我收藏的项目链接,对于各种认证机制的学习非常有帮助:

项目主页:http://www.open-open.com/lib/view/home/1418870307933

 

【pac4j】OAuth 认证机制 入门篇

原文:http://www.cnblogs.com/zhutouying/p/6774209.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!