mirror of
https://gitee.com/fujieid/jap.git
synced 2024-11-29 18:17:34 +08:00
✨ docs: Fixed wrong document link
This commit is contained in:
parent
679ddc045e
commit
3a48ed42c6
7
jap-http-api/README.md
Normal file
7
jap-http-api/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
## JAP Http API
|
||||
|
||||
`jap-http-api` 支持 Basic、Digest 和 Bearer 等方式
|
||||
|
||||
## 使用方法
|
||||
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-http-api/)
|
@ -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
|
||||
密码: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
|
@ -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`。
|
||||
校验通过返回 `true`。
|
||||
|
||||
|
||||
更多使用方式参考:[帮助文档](https://justauth.plus/quickstart/jap-mfa/)
|
@ -4,4 +4,4 @@
|
||||
|
||||
## 使用方法
|
||||
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-oauth2.html)
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-oauth2/)
|
@ -4,4 +4,4 @@
|
||||
|
||||
## 使用方法
|
||||
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-oidc.html)
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-oidc/)
|
@ -4,4 +4,4 @@
|
||||
|
||||
## 使用方法
|
||||
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-simple.html)
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-simple/)
|
@ -4,4 +4,4 @@
|
||||
|
||||
## 使用方法
|
||||
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-social.html)
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-social/)
|
@ -4,4 +4,4 @@
|
||||
|
||||
## 使用方法
|
||||
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-sso.html)
|
||||
参考:[帮助文档](https://justauth.plus/quickstart/jap-sso/)
|
Loading…
Reference in New Issue
Block a user