Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override manager implementation in Tomcat Webapps Deployer #342

Open
ashendes opened this issue Mar 24, 2020 · 0 comments
Open

Cannot override manager implementation in Tomcat Webapps Deployer #342

ashendes opened this issue Mar 24, 2020 · 0 comments

Comments

@ashendes
Copy link

Description:
It is not possible to change the session manager used by updating the configs in context.xml as the manager is always dynamically set to an instance of CarbonTomcatSessionManager in the deployer.

if (manager instanceof CarbonTomcatSessionManager) {
((CarbonTomcatSessionManager) manager).setOwnerTenantId(tenantId);
} else if (manager instanceof CarbonTomcatSessionPersistentManager){
((CarbonTomcatSessionPersistentManager) manager).setOwnerTenantId(tenantId);
log.debug(((CarbonTomcatSessionPersistentManager) manager).getName() +
" enabled Tomcat HTTP Session Persistent mode using " +
((CarbonTomcatSessionPersistentManager) manager).getStore());
} else {
context.setManager(new CarbonTomcatSessionManager(tenantId));
}

For WSO2 Identity Server, there are no use cases which require webapps to be accessed in the same tenant context which deployed the app. Webapps should be accessible across tenants.

In the current implementation shown above, the CarbonTomcatSessionManager is explicitly set for webapps in the Super Tenant realm during deployment. Therefore, those webapps become accessible only from within Super Tenant context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant