Skip to content
View in the app

A better way to browse. Learn more.

Jaspersoft Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Logout from JasperReports Server to CAS logout page. Single sign out.

  • Features: Filters, JasperReports Server, User Authorization
  • Version: v6.0.1
  • Product: Jaspersoft® Studio

Before doing these actions it is assumed that you have successfully:

  • Launched JasperReports Server;

  • Launched CAS;

  • Integrated JasperReports Server authentication process via CAS;

This quick tutorial will try to give you enough information to successfully let you implement JasperServer logout functionality that it could invalidate CAS session.

JasperReports Server v6.0.1.

All actions will need to be done in the file, applicationContext-security-web.xml .

  1. In the filterChainProxy bean add to the filter-chain filters attribute with the pattern attribute of /** these values: logoutFilter,casSingleSignOutFilter.

    It can look something like this:

    <security:filter-chain pattern="/**"
        filters="httpSessionContextIntegrationFilter,encryptionFilter,delegatingCASSingleSignOutFilter,multipartRequestWrapperFilter,webAppSecurityFilter,jsCsrfGuardFilter,${bean.loggingFilter},${bean.userPreferencesFilter},delegatingPreAuthenticatedFilter,delegatingAuthenticationProcessingFilter,${bean.userPreferencesFilter},delegatingBasicProcessingFilter,delegatingRequestParameterAuthenticationFilter,JIAuthenticationSynchronizer,anonymousProcessingFilter,delegatingExceptionTranslationFilter,filterInvocationInterceptor,switchUserProcessingFilter,iPadSupportFilter,authenticationProcessingFilter,logoutFilter,casSingleSignOutFilter"/>
    
  2. Add two filters and listener:

    <bean id="logoutFilter"
          class="org.springframework.security.web.authentication.logout.LogoutFilter">
        <constructor-arg value="https://localhost:6443/cas/logout"/>
        <constructor-arg>
            <list>
                <bean class="org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler"/>
            </list>
        </constructor-arg>
        <property name="filterProcessesUrl" value="/login.html"/>
    </bean>
    
    <bean id="casSingleSignOutFilter"
          class="org.jasig.cas.client.session.SingleSignOutFilter"></bean>
    <bean id="casSingleSignOutHttpSessionListener"
          class="org.jasig.cas.client.session.SingleSignOutHttpSessionListener"></bean>
    

    Property filterProcessesUrl with the value of "/login.html" will redirect jasper/login.html to cas/logout page

User Feedback

Recommended Comments

There are no comments to display.

Guest
This is now closed for further comments

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.