zoukankan      html  css  js  c++  java
  • 【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

  • 相关阅读:
    C#正则表达式
    HDU 1009 FatMouse' Trade
    HDU 1022 Train Problem I
    HDU 3665 Seaside
    (转)qsort完整版用法
    HDU 1061 Rightmost Digit (矩阵快速幂)
    HDU 2817 A sequence of numbers
    HDU 1943 Ball bearings
    HDU 1058 Humble Numbers
    HDU 4278 Faulty Odometer
  • 原文地址:https://www.cnblogs.com/zhutouying/p/6774209.html
Copyright © 2011-2022 走看看