1. 程式人生 > >單點登錄客戶端配置配置

單點登錄客戶端配置配置

服務 .com ont tick get client ipa value ppi

  1. <!-- 用於單點退出,該過濾器用於實現單點登出功能,可選配置-->
  2. <listener>
  3. <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class>
  4. </listener>
  5. <!-- 該過濾器用於實現單點登出功能,可選配置。 -->
  6. <filter>
  7. <filter-name>CAS Single Sign Out Filter</filter-name>
  8. <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class>
  9. </filter>
  10. <filter-mapping>
  11. <filter-name>CAS Single Sign Out Filter</filter-name>
  12. <url-pattern>/*</url-pattern>
  13. </filter-mapping>
  14. <!-- 該過濾器負責用戶的認證工作,必須啟用它 -->
  15. <filter>
  16. <filter-name>CAS Filter</filter-name>
  17. <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
  18. <init-param>
  19. <param-name>casServerLoginUrl</param-name>
  20. <param-value>https://demo.micmiu.com:8080/cas/login</param-value>
  21. <!--這裏的server是服務端的IP -->
  22. </init-param>
  23. <init-param>
  24. <param-name>serverName</param-name>
  25. <param-value>http://app1.micmiu.com:18080</param-value>
  26. </init-param>
  27. </filter>
  28. <filter-mapping>
  29. <filter-name>CAS Filter</filter-name>
  30. <url-pattern>/*</url-pattern>
  31. </filter-mapping>
  32. <!-- 該過濾器負責對Ticket的校驗工作,必須啟用它 -->
  33. <filter>
  34. <filter-name>CAS Validation Filter</filter-name>
  35. <filter-class>
  36. org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
  37. <init-param>
  38. <param-name>casServerUrlPrefix</param-name>
  39. <param-value>https://demo.micmiu.com:8080/cas</param-value>
  40. </init-param>
  41. <init-param>
  42. <param-name>serverName</param-name>
  43. <param-value>http://app1.micmiu.com:18080</param-value>
  44. </init-param>
  45. </filter>
  46. <filter-mapping>
  47. <filter-name>CAS Validation Filter</filter-name>
  48. <url-pattern>/*</url-pattern>
  49. </filter-mapping>
  50. <!--
  51. 該過濾器負責實現HttpServletRequest請求的包裹,
  52. 比如允許開發者通過HttpServletRequest的getRemoteUser()方法獲得SSO登錄用戶的登錄名,可選配置。
  53. -->
  54. <filter>
  55. <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
  56. <filter-class>
  57. org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
  58. </filter>
  59. <filter-mapping>
  60. <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
  61. <url-pattern>/*</url-pattern>
  62. </filter-mapping>
  63. <!--
  64. 該過濾器使得開發者可以通過org.jasig.cas.client.util.AssertionHolder來獲取用戶的登錄名。
  65. 比如AssertionHolder.getAssertion().getPrincipal().getName()。
  66. -->
  67. <filter>
  68. <filter-name>CAS Assertion Thread Local Filter</filter-name>
  69. <filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
  70. </filter>
  71. <filter-mapping>
  72. <filter-name>CAS Assertion Thread Local Filter</filter-name>
  73. <url-pattern>/*</url-pattern>
  74. </filter-mapping>

單點登錄客戶端配置配置