Sample standard single sign-on deployment

<< Click to Display Table of Contents >>

Current:  System Integration > Standard Single Sign-on 

Sample standard single sign-on deployment

Previous pageReturn to chapter overviewNext page

Sample standard single sign-on deployment

Once the integration is complete, do a single sign-on configuration with the following steps:

 

1. Yonghong/tomcat/webapps/bi/WEB-INF/web.xml Configure Servlet   Configure a single sign-on interceptor. Blocking product requests, first single sign-on logic. )

 

1)What needs to be added:

 

<!-- sso filter start -->     

  <filter>

     <filter-name>StandardSSOFilter</filter-name>

     <filter-class>g5.sv.standardsso.SSOLoginFilter</filter-class>

  </filter>

  <filter-mapping>

     <filter-name>StandardSSOFilter</filter-name>

     <servlet-name>ViewerServlet</servlet-name>

  </filter-mapping>

  <!-- sso filter end -->

   

<servlet>

   <display-name>TokenServlet</display-name>

   <servlet-name>TokenServlet</servlet-name>

   <servlet-class>com.yh.sso.test.TokenCheckedServlet</servlet-class>

</servlet>

<servlet-mapping>

      <servlet-name>TokenServlet</servlet-name>

      <url-pattern>/TokenChecked</url-pattern>

</servlet-mapping>

 

2)What needs to be commented out:

 <!-- servlet-mapping>

 <servlet-name>ViewerServlet</servlet-name>

 <url-pattern>/</url-pattern>

 </servlet-mapping> -->

 

2. Configure bi.properties file

Yonghong/bihome/bi.properties  Modify the following properties in the file:

standardsso.callback.url=http://localhost:8080/bi/TokenChecked (This link is provided by the client system to verify the token information)

 

3. Restart tomcat

If the single sign-on switch is off, you need to go to bi.home's bi.properties and configure standardsso.enabled = true to enable single sign-on.

Restart tomcat,The configuration of single sign-on takes effect.