Spring Security-OAuth,针对多租户应用程序的LDAP集成 [英] Spring Security - OAuth, LDAP Integration for multitenant application

查看:807
本文介绍了Spring Security-OAuth,针对多租户应用程序的LDAP集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Spring多租户应用程序使用Spring Security.我正在使用Spring Security 3.2

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

我正在为Spring多租户应用程序使用Spring Security.我的要求 是tenant1应该被授权反对oauth,tenant2应该被授权 反对ldap,并且tenant3应该被授权反对数据库.我会知道 通过属性文件的租户授权方法.我能够 使用任何单一授权方法授权用户.但是我不能 配置多种授权方法.请有人提出任何建议 在此.

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.

推荐答案

对于Web应用程序,您可以使用不同的登录URL,并允许用户选择身份验证方法.然后应为每个URL应用单独的安全过滤器. 您可以检查以下配置:

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

这篇关于Spring Security-OAuth,针对多租户应用程序的LDAP集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆