The previous analysis describes how to simplify and modify the Saiku interface "Http://www.cnblogs.com/avivaye/p/4877882.html"
This article explains how to remove the free login into the Saiku console
1, modify the Applicationcontext-saiku-webapp.xml
<security:intercept-url pattern= "/rest/**" access= "is_authenticated_anonymously"/> <security: Intercept-url pattern= "/json/**" access= "is_authenticated_anonymously"/>
2. Add AllowAnonymous property in Saiku-beans.xml
class= "Org.saiku.web.service.SessionService" > <property name= "AuthenticationManager" ref= " AuthenticationManager "/> <property name=" allowanonymous "value=" true "/></bean>
Explain:
The ①saiku interface service is loaded via jersey and has the following configuration in Web. xml
Scanned Package: Org.saiku.web the rest service interface under this package is loaded at startup, plus the path:/rest
<servlet> <servlet-name>jersey2</servlet-name> <servlet-class> Com.sun.jersey.spi.spring.container.servlet.springservlet</servlet-class> <init-param> < Param-name>com.sun.jersey.config.property.packages</param-name> <param-value>org.saiku.web; com.fasterxml.jackson.jaxrs.json</param-value> </init-param> <init-param> <param-name> Com.sun.jersey.api.json.pojomappingfeature</param-name> <param-value>true</param-value> </ Init-param> <init-param> <param-name>com.sun.jersey.config.feature.Trace</param-name> < param-value>true</param-value> </init-param> <init-param> <param-name>jaxrs.providers </param-name> <param-value>org.saiku.web.rest.SerializableProvider</param-value> </ Init-param> <load-on-startup>1</load-on-startup></servlet><servlet-mapping> < Servlet-name&gT;jersey2</servlet-name> <url-pattern>/rest/*</url-pattern></servlet-mapping>
② set permissions for path matching to path:/rest/** is_authenticated_anonymously
Indicates that a user who is an anonymous user or an authorized user can be eligible to access the rest service
③ by injecting <property name= "allowanonymous" value= "true"/> in Sessionservice
When the user calls the login service, it will determine whether it is an anonymous user, and if it is an anonymous user, call the CreateSession method to create the session
This enables anonymous login with no login
Saiku-No login access to the management background