mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing the tenant loading problem when sso is enabled
This commit is contained in:
parent
a0586ca977
commit
e8eb0123c7
@ -35,6 +35,11 @@ var onFail;
|
|||||||
if (!context.input.samlToken) {
|
if (!context.input.samlToken) {
|
||||||
(new carbonServer.Server({url: devicemgtProps["adminService"]}))
|
(new carbonServer.Server({url: devicemgtProps["adminService"]}))
|
||||||
.login(context.input.username, context.input.password);
|
.login(context.input.username, context.input.password);
|
||||||
|
} else {
|
||||||
|
var PrivilegedCarbonContext = Packages.org.wso2.carbon.context.PrivilegedCarbonContext;
|
||||||
|
PrivilegedCarbonContext.startTenantFlow();
|
||||||
|
var cxt = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
||||||
|
cxt.setTenantDomain(context.user.domain, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user