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

查看:110
本文介绍了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.我的要求是否应针对 oauth 授权租户 1,应授权租户 2针对 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 应用单独的安全过滤器.您可以检查此配置:https://code.google.com/p/opendatakit/source/browse/eclipse-aggregate-gae/war/WEB-INF/applicationContext-security.xml?repo=aggregate

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天全站免登陆