maxkey-support-httpheader.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:context="http://www.springframework.org/schema/context"
  4. xmlns:mvc="http://www.springframework.org/schema/mvc"
  5. xmlns:sec="http://www.springframework.org/schema/security"
  6. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xmlns:p="http://www.springframework.org/schema/p"
  8. xmlns:util="http://www.springframework.org/schema/util"
  9. xsi:schemaLocation="
  10. http://www.springframework.org/schema/beans
  11. http://www.springframework.org/schema/beans/spring-beans.xsd
  12. http://www.springframework.org/schema/context
  13. http://www.springframework.org/schema/context/spring-context.xsd
  14. http://www.springframework.org/schema/util
  15. http://www.springframework.org/schema/util/spring-util.xsd
  16. http://www.springframework.org/schema/mvc
  17. http://www.springframework.org/schema/mvc/spring-mvc.xsd
  18. http://www.springframework.org/schema/security
  19. http://www.springframework.org/schema/security/spring-security.xsd">
  20. <bean id="httpHeaderSupport" class="org.maxkey.authn.support.httpheader.HttpHeaderConfig">
  21. <property name="enable" value="${config.support.httpheader.enable}"></property>
  22. <property name="headerName" value="${config.support.httpheader.headername}"></property>
  23. </bean>
  24. <!-- HttpHeader Support -->
  25. <mvc:interceptors>
  26. <mvc:interceptor>
  27. <mvc:mapping path="/*" />
  28. <bean class="org.maxkey.authn.support.httpheader.HttpHeaderEntryPoint" />
  29. </mvc:interceptor>
  30. </mvc:interceptors>
  31. </beans>