【pac4j】OAuth 认证机制 入门篇

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

 

转载于:https://www.cnblogs.com/zhutouying/p/6774209.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值