Using Grails Spring Security Saml Plugin

2019-07-15 02:17发布

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.

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

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'
...
}

1条回答
我命由我不由天
2楼-- · 2019-07-15 02:36

I researched a lot and following are my findings

  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.

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.

查看更多
登录 后发表回答