too*_*oop 5 java spring spring-security jwt spring-boot
有没有人在 springboot 应用程序中有一个有效的例子?
我还没有找到任何具有此设置的示例博客/指南,但我相信这将是一种常见的安全设置,除非我弄错了?不应涉及 jpa/hibernate/persistence/mysql/postgres/H2db 连接 我在网上找到的所有示例要么只是 JWT,要么只是 LDAP,要么使用 LDIF 或使用一些 H2/postgres 来存储凭据。
这有效:
智威汤逊来自来自https://github.com/merugu/springsecurity/tree/master/ldapauthenticationjwttoken
广告来自来自https://medium.com/@dmarko484/spring-boot-active-directory-authentication-5ea04969f220
必须将 github jwt 存储库升级到 springboot 2.0.5 并添加 setSearchFilter {1} (https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/ldap/authentication /ad/ActiveDirectoryLdapAuthenticationProvider.html ) 到 AD
第二个选项也适用于 Springboot 1.5: 在https://github.com/cnapagoda/spring-boot-basic-之上,Spring security 切换到 Ldap 身份验证和数据库权限( /sf/answers/2426112881/ )授权
| 归档时间: |
|
| 查看次数: |
3847 次 |
| 最近记录: |