diff --git a/jap-http-api/README.md b/jap-http-api/README.md new file mode 100644 index 0000000..d1cff61 --- /dev/null +++ b/jap-http-api/README.md @@ -0,0 +1,7 @@ +## JAP Http API + +`jap-http-api` 支持 Basic、Digest 和 Bearer 等方式 + +## 使用方法 + +参考:[帮助文档](https://justauth.plus/quickstart/jap-http-api/) \ No newline at end of file diff --git a/jap-ldap/README.md b/jap-ldap/README.md index 2b9038b..1234e0d 100644 --- a/jap-ldap/README.md +++ b/jap-ldap/README.md @@ -1,28 +1,9 @@ -https://datatracker.ietf.org/doc/html/rfc2307 -https://datatracker.ietf.org/doc/rfc2307/ +## JAP LDAP -https://www.openldap.org/faq/data/cache/629.html - -http://gurolerdogan.blogspot.com/2010/03/ssha-encryption-with-java.html - -https://www.thinbug.com/q/31401353 - -ext_des: -- https://hotexamples.com/examples/-/-/randomSalt/php-randomsalt-function-examples.html -- https://phpbb.itnotetk.com/viewtopic.php?t=452 - -## 测试 LDAP 的密码匹配器 - -1. 可以按照下面的方式启动 ldap,然后创建指定用户,创建用户的时候密码加密方式注意切换。然后在 `com.fujieid.jap.ldap.template.LdapDefaultTemplateTest` 中进行在线测试 -2. 直接在 `com.fujieid.jap.ldap.password.LdapPasswordUtilTest` 中参考 `checkPassword` 方法写对应的验证规则 +`jap-ldap` 是为了方便快速的接入 LDAP 协议而开发的组件。 ## 本地启动 ldap + UI 管理后台 -.env -```text -LDAP_DIR=D://var/ldap -``` - docker-compose.yml ```yaml version: '3.3' @@ -47,9 +28,9 @@ services: LDAP_CONFIG_PASSWORD: 123456 volumes: # 数据库存储目录 - - ${LDAP_DIR}/data:/var/lib/ldap + - /var/ldap/data:/var/lib/ldap # 配置文件目录 - - ${LDAP_DIR}/conf:/etc/ldap/slapd.d + - /var/ldap/conf:/etc/ldap/slapd.d restart: always # Redis ldap-admin: @@ -59,7 +40,7 @@ services: environment: # 禁用HTTPS PHPLDAPADMIN_HTTPS: "false" - # LDAP 的 IP 或者域名 + # LDAP 的 IP 或者域名,此处为容器名 PHPLDAPADMIN_LDAP_HOSTS: ldap ports: - 19999:80 @@ -73,4 +54,27 @@ services: 启动后访问:[http://localhost:19999/index.php](http://localhost:19999/index.php) 账号:cn=admin,dc=test,dc=com -密码:123456 \ No newline at end of file +密码:123456 + +## LdapStrategy 使用方式 + +参考:[帮助文档](https://justauth.plus/quickstart/jap-ldap/) + +## 参考资料 + +- https://datatracker.ietf.org/doc/html/rfc2307 +- https://datatracker.ietf.org/doc/rfc2307/ + + +- https://www.openldap.org/faq/data/cache/629.html + + +- http://gurolerdogan.blogspot.com/2010/03/ssha-encryption-with-java.html + + +- https://www.thinbug.com/q/31401353 + + +- ext_des: + - https://hotexamples.com/examples/-/-/randomSalt/php-randomsalt-function-examples.html + - https://phpbb.itnotetk.com/viewtopic.php?t=452 \ No newline at end of file diff --git a/jap-mfa/README.md b/jap-mfa/README.md index 915c8a3..e5b92c4 100644 --- a/jap-mfa/README.md +++ b/jap-mfa/README.md @@ -75,4 +75,7 @@ JapMfa japMfa = new JapMfa(new JapMfaServiceImpl()); 1. 通过用户名校验 - `boolean verifyByUsernameResult = japMfa.verifyByUsername(username, consoleInput)` 2. 通过 secretKey 校验 - `boolean verifyBySecretResult = japMfa.verifyBySecret(secretKey, consoleInput);` -校验通过返回 `true`。 \ No newline at end of file +校验通过返回 `true`。 + + +更多使用方式参考:[帮助文档](https://justauth.plus/quickstart/jap-mfa/) \ No newline at end of file diff --git a/jap-oauth2/README.md b/jap-oauth2/README.md index 133b847..089e7ca 100644 --- a/jap-oauth2/README.md +++ b/jap-oauth2/README.md @@ -4,4 +4,4 @@ ## 使用方法 -参考:[帮助文档](https://justauth.plus/quickstart/jap-oauth2.html) \ No newline at end of file +参考:[帮助文档](https://justauth.plus/quickstart/jap-oauth2/) \ No newline at end of file diff --git a/jap-oidc/README.md b/jap-oidc/README.md index 27780f1..a2ffb25 100644 --- a/jap-oidc/README.md +++ b/jap-oidc/README.md @@ -4,4 +4,4 @@ ## 使用方法 -参考:[帮助文档](https://justauth.plus/quickstart/jap-oidc.html) \ No newline at end of file +参考:[帮助文档](https://justauth.plus/quickstart/jap-oidc/) \ No newline at end of file diff --git a/jap-simple/README.md b/jap-simple/README.md index 0cd3d5b..94de2c9 100644 --- a/jap-simple/README.md +++ b/jap-simple/README.md @@ -4,4 +4,4 @@ ## 使用方法 -参考:[帮助文档](https://justauth.plus/quickstart/jap-simple.html) \ No newline at end of file +参考:[帮助文档](https://justauth.plus/quickstart/jap-simple/) \ No newline at end of file diff --git a/jap-social/README.md b/jap-social/README.md index b187268..70ef88f 100644 --- a/jap-social/README.md +++ b/jap-social/README.md @@ -4,4 +4,4 @@ ## 使用方法 -参考:[帮助文档](https://justauth.plus/quickstart/jap-social.html) \ No newline at end of file +参考:[帮助文档](https://justauth.plus/quickstart/jap-social/) \ No newline at end of file diff --git a/jap-sso/README.md b/jap-sso/README.md index 0997db0..120ecbd 100644 --- a/jap-sso/README.md +++ b/jap-sso/README.md @@ -4,4 +4,4 @@ ## 使用方法 -参考:[帮助文档](https://justauth.plus/quickstart/jap-sso.html) \ No newline at end of file +参考:[帮助文档](https://justauth.plus/quickstart/jap-sso/) \ No newline at end of file