使用Grails Spring Security Saml插件 [英] Using Grails Spring Security Saml Plugin

查看:108
本文介绍了使用Grails Spring Security Saml插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在grails应用中使用 Grails Spring Security Saml插件单一登录功能,我已经尽力找到任何示例,这些示例说明了添加此插件并随后在本地环境中使用模拟IDP和SP测试该插件所需执行的步骤,但在 Grails Spring Security Saml插件文档仅对在应用程序中添加插件并配置其不同的属性.

I am trying to use Grails Spring Security Saml Plugin in grails app to have single sign on functionality, I have tried hard to find any example which have explanation of the steps I need to do for adding this plugin and then testing this in my local environment using mock IDP and SP but haven't found anything beside the Grails Spring Security Saml Plugin Documentation which only helps in adding the plugin in the app and configuring its different properties.

有人可以建议我如何完成此插件集成并使用模拟IDP和SP在本地环境中对其进行测试的步骤吗?

Can anyone suggest the steps how I can complete this plugin integration and test it in my local environment using mock IDP and SP?

我在BuildConfig.groovy中添加了以下内容

I have added following in my BuildConfig.groovy

dependencies {
...
    compile ("org.springframework.security.extensions:spring-security-saml2-core:1.0.1.RELEASE") {
        export = false
        excludes 'spring-security-core'
        excludes 'spring-security-web'
    }
...
}

plugins {
...
    compile ':spring-security-saml:2.0.0'
...
}

推荐答案

我做了很多研究,以下是我的发现

I researched a lot and following are my findings

  1. Grails Spring Security Saml插件内部使用 Spring Security SAML 插件,以提高灵活性
  1. Grails Spring Security Saml Plugin internally uses Spring Security SAML plugin.
  2. So it is better to use Spring Security SAML plugin directly for more flexibility.

我遵循了文档,并添加了插件及其对我的应用程序的配置,现在可以正常运行了. 在Grails中开始使用Spring SAML的新人的最佳去处是 Grails SSO示例我已经为Grails 2.4.3升级的应用程序.在本地运行该应用程序,了解在此应用程序中完成的配置,然后逐步在您的应用程序中实现这些配置.

I followed this documentation and added plugin and its configurations to my app and now its running fine. The best place to start for a new person on Spring SAML in grails is Grails SSO Sample application which I have upgraded for Grails 2.4.3. Run this app locally and get to know about the configurations done in this application and then implement those in your application step by step.

这篇关于使用Grails Spring Security Saml插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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