Skip to main content
Version: 1.10.0

Custom Authentication


The Apache Shiro framework is used in the inlong manager to realize the functions of authentication and authorization. The manager has integrated the default implementation logic. If you want to realize the custom Shiro based authentication and authorization function in the inlong manager, you can carry out the plug-in development of relevant functions according to the following instructions.


  • Add Maven Dependency


  • Implement the following interfaces

public interface InlongShiro {

WebSecurityManager getWebSecurityManager();

AuthorizingRealm getShiroRealm();

WebSessionManager getWebSessionManager();

CredentialsMatcher getCredentialsMatcher();

ShiroFilterFactoryBean getShiroFilter(SecurityManager securityManager);

AuthorizationAttributeSourceAdvisor getAuthorizationAttributeSourceAdvisor(SecurityManager securityManager);

  • Implement InlongShiro interface and specify the configuration in "@ conditionalonproperty"
@ConditionalOnProperty(name = "type", prefix = "inlong.auth", havingValue = "Custom")
public class InlongShiroImpl implements InlongShiro {
  • Modify the under the manager web module