@resolveio/client-lib-core 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/auth/auth.service.mjs +5 -2
- package/esm2020/lib/core.component.mjs +4 -1
- package/fesm2015/resolveio-client-lib-core.mjs +7 -1
- package/fesm2015/resolveio-client-lib-core.mjs.map +1 -1
- package/fesm2020/resolveio-client-lib-core.mjs +7 -1
- package/fesm2020/resolveio-client-lib-core.mjs.map +1 -1
- package/lib/auth/auth.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4248,6 +4248,9 @@ class AuthService {
|
|
|
4248
4248
|
framework: { isAngular: true }
|
|
4249
4249
|
});
|
|
4250
4250
|
}
|
|
4251
|
+
setEnvironment(environment) {
|
|
4252
|
+
this.environment = environment;
|
|
4253
|
+
}
|
|
4251
4254
|
setUserHasPhoneNumber(value) {
|
|
4252
4255
|
this.userHasPhoneNumber = value;
|
|
4253
4256
|
}
|
|
@@ -4423,7 +4426,7 @@ class AuthService {
|
|
|
4423
4426
|
this.userAgentApplication.loginRedirect(graphScopes);
|
|
4424
4427
|
}
|
|
4425
4428
|
loginModal() {
|
|
4426
|
-
return this._ds.login(!this.environment || !this.environment.MS_ALLOWED ? false : true);
|
|
4429
|
+
return this._ds.login(!this.environment || !this.environment.MS_ALLOWED ? false : true, !this.environment || !this.environment.HIDE_LOGIN_TEXT ? true : false);
|
|
4427
4430
|
}
|
|
4428
4431
|
removeUser(id) {
|
|
4429
4432
|
return new Promise((resolve, reject) => {
|
|
@@ -4925,6 +4928,9 @@ class CoreComponent extends BaseComponent {
|
|
|
4925
4928
|
if (this.environment && this.environment.MS_ALLOWED) {
|
|
4926
4929
|
this._auth.setupMSSingleSignOn(this.environment);
|
|
4927
4930
|
}
|
|
4931
|
+
else if (this.environment) {
|
|
4932
|
+
this._auth.setEnvironment(this.environment);
|
|
4933
|
+
}
|
|
4928
4934
|
this._auth.setUserHasPhoneNumber(this.userHasPhoneNumber);
|
|
4929
4935
|
// this._services._app.setCustomHomePage(this.customHomePage);
|
|
4930
4936
|
// this._services._app.setLogo(this.logo);
|