简体   繁体   中英

Using Grails Spring Security Saml Plugin

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM