Saiku-No login access to the management background

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.