bkoehm commented on issue #1079:
URL: 
https://github.com/apache/grails-spring-security/issues/1079#issuecomment-3211584209

   @jamesfredley @dylankolson 
   
   Looking at SpringSecurityCasGrailsPlugin.groovy:102 from commit 
8e231d677b4b762e7777a2a228ef398817aff9b5, this line is:
   ```loginUrl = conf.cas.serverUrlPrefix + conf.cas.loginUri```
   
   Looks like maybe the CAS configuration is not available?
   
   Try something like this:
   ```
   grails {
       plugin {
           springsecurity {
               cas {
                   loginUri = '/login'
                   serviceUrl = "${grails.serverURL}/login/cas"
                   serverUrlPrefix = 'https://YOUR.CAS.SERVER.HERE/cas'
               }
               logout {
                   // redirect location when someone logs out
                   afterLogoutUrl = 
"${grails.plugin.springsecurity.cas.serverUrlPrefix}/logout?service=${grails.serverURL}/"
               }
   
           }
       }
   }
   ```
   
   It's possible the documentation needs to be updated and it also looks like 
we need some configuration checks to throw a more useful error when the 
mandatory configuration items are missing.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@grails.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to