ServletFilter

Junya Fujiyoshi shared this question 18 months ago
Answered

Hi,

I would like to write the program of ServletFilter to control the process of Yellowfin login pages.

However, I cannot find the information how to create it.

Does anyone have the information helpful to write servletFilter?

Regards,

Junya Fujiyoshi

Replies (2)

photo
1

Hi Junya,

Are you referring to these configurable servlet filters such as those described on our Application Server Security wiki page? https://wiki.yellowfinbi.com/display/yfcurrent/Application+Server+Security#ApplicationServerSecurity-ImproveYellowfinweb.xmlhardeningconfigurations

There is another filter that's not mentioned on that page for redirecting not logged in users to the SSO page, called the NotLoggedInFilter, if that's what you're looking for.

That's invoked in the web.xml using the code

<filter>
    <filter-name>NotLoggedInFilter</filter-name>
    <filter-class>com.hof.adapter.NotLoggedInFilter</filter-class>
    <init-param> 
        <param-name>restrictedEntryPoint</param-name> 
        <param-value>/RunReport.i4,/RunDashboard.i4</param-value> 
	</init-param> 
	<init-param> 
        <param-name>redirectUrl</param-name> 
        <param-value>http://localhost:3424/test_redirect.jsp?</param-value>; 
	</init-param> 
  </filter>
  <filter-mapping>
    <filter-name>NotLoggedInFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

That contains some information on limiting access to Yellowfin using IPFilters and the like. I can't find any information on creating custom servletFilters, however.

Kind regards,

Chris

photo
1

Hi Junya,

I didn't hear back from you on this one, so I'll assume you managed to get it resolved and close it off for now, but let me know if you want to reopen it.

Kind regards,

Chris

Leave a Comment
 
Attach a file