[英]springboot - basic ActiveDirectory auth then JWT token
有沒有人在 springboot 應用程序中有這樣的工作示例?
我沒有找到任何具有此設置的示例博客/指南,但我相信這將是一個常見的安全設置,除非我弄錯了? 不應該涉及 jpa/hibernate/persistence/mysql/postgres/H2db 連接我在網上找到的所有示例要么只是 JWT,要么只是 LDAP,或者使用 LDIF 或使用一些 H2/postgres 來存儲憑據。
這有效:
JWT 來自https://github.com/merugu/springsecurity/tree/master/ldapauthenticationjwttoken
來自https://medium.com/@dmarko484/spring-boot-active-directory-authentication-5ea04969f220 的廣告
必須將 github jwt repo 升級到 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: Spring 安全切換到 Ldap 身份驗證和數據庫權限( https://stackoverflow.com/a/34658755 ) 在https://github.com/cnapagoda/spring-boot-basic-之上授權
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.