Spring Security - OAuth, LDAP Integration for multitenant application

依然范特西╮ 提交于 2019-12-13 12:29:35

问题


I am using spring security for my spring multitenant application. I am using spring security 3.2

I am using spring security for my spring multitenant application. My requirement is tenant1 should be authorized against oauth and tenant2 should be authorized against ldap and tenant3 should be authorized against database. I will be knowing the authorization method for the tenant through properties file. I am able to authorize user against any single authorization method. But i am not able to configure for multiple authorization methods. Please someone give any suggestions on this.


回答1:


In case of web application, you can use different login URLs and allow user to choose authentication method. Then separate security filters should be applied for each URL. You can check this configuration: https://code.google.com/p/opendatakit/source/browse/eclipse-aggregate-gae/war/WEB-INF/applicationContext-security.xml?repo=aggregate



来源:https://stackoverflow.com/questions/22252799/spring-security-oauth-ldap-integration-for-multitenant-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!