Changeset 2109


Ignore:
Timestamp:
Nov 16, 2011, 1:00:00 PM (11 years ago)
Author:
work@…
Message:

fixed shibboleth config issue by first casting to string, then to boolean (thanks to Siemen!)

Location:
trunk/grails-app
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/authentication/LoginController.groovy

    r2107 r2109  
    5858                        }
    5959                        return
    60                 } else if (grailsApplication.config.authentication.shibboleth.toBoolean()) {
     60                } else if (grailsApplication.config.authentication.shibboleth.toString().toBoolean()) {
    6161                        // authenticated through shibboleth?
    6262                        if (request.getHeaderNames().find{ it.toLowerCase() == 'persistent-id'.toLowerCase() }) {
  • trunk/grails-app/views/common/_login_panel.gsp

    r2107 r2109  
    8181                                <sec:ifLoggedIn><g:link controller="logout" action="index">sign out</g:link></sec:ifLoggedIn>
    8282                                <sec:ifNotLoggedIn>
    83                                         <g:if test="${grailsApplication.config.authentication.shibboleth.toBoolean()}">
     83                                        <g:if test="${grailsApplication.config.authentication.shibboleth.toString().toBoolean()}">
    8484                                                <g:link class="open" controller="login">Log in</g:link>
    8585                                        </g:if>
  • trunk/grails-app/views/login/auth.gsp

    r2107 r2109  
    7676        </div>
    7777</div>
    78 <g:if test="${!grailsApplication.config.authentication.shibboleth.toBoolean()}">
     78<g:if test="${!grailsApplication.config.authentication.shibboleth.toString().toBoolean()}">
    7979<script type='text/javascript'>
    8080        <!--
Note: See TracChangeset for help on using the changeset viewer.