简体   繁体   English

Apache Wicket-自定义servlet

[英]Apache Wicket - Custom servlet

I am trying to integrate Wicket (1.5.16) with the "Single Sign-On". 我正在尝试将Wicket(1.5.16)与“单一登录”集成在一起。 In this process, IdP posts a bunch of attributes back to the Wicket application using HTTP POST. 在此过程中,IdP使用HTTP POST将一堆属性发布回Wicket应用程序。

If I use , it looks for life cycle and also adds some numbers to the form, etc. I am looking for the following solution, 1) Create a Servlet/Some Wicket class which can receive the POST requests. 如果使用,它会寻找生命周期,还会在表单中添加一些数字,等等。我正在寻找以下解决方案:1)创建一个可以接收POST请求的Servlet / Some Wicket类。 2) If SAML authentication is successful, forward to a private Internal . 2)如果SAML身份验证成功,则转发到私有Internal。

Please let me know if you have any submissions. 如果您有任何意见,请告诉我。

You can wrap Wicket in another Servlet Filter. 您可以将Wicket包装在另一个Servlet过滤器中。 This way your Filter will receive the request first and may decide whether to process it or pass it to Wicket. 这样,您的过滤器将首先接收请求,并可以决定是否处理该请求或将其传递给Wicket。

To accomplish this you just need to define your <filter> above/before Wicket's filter/servlet in web.xml. 为此,您只需要在web.xml中Wicket的filter / servlet上方/之前定义您的<filter>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM