mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3162] Setting component - Should be able to render the providers passed as input (#3464)
* Be able to change the available providers values * Add deprecated tag * add default providers * Fix empty OAuth and selected providers Improve the documentation * Fix BPM guard to check SSO condition * Add the oauthConfig again * SSO or Basic otpion auth setting change * fix host settings sso/basic add login documentation * remove test string * fix auth guard test * dispose upload emitter test events * remove space * exclude failing test
This commit is contained in:
committed by
Eugenio Romano
parent
9221d1d0d0
commit
476b5864bf
@@ -147,21 +147,6 @@ export class UserPreferencesService {
|
||||
return this.defaults.supportedPageSizes;
|
||||
}
|
||||
|
||||
/** Authorization type (can be "ECM", "BPM" or "ALL"). */
|
||||
/** @deprecated in 2.4.0 */
|
||||
set authType(authType: string) {
|
||||
let storedAuthType = this.storage.getItem('AUTH_TYPE');
|
||||
|
||||
if (authType !== storedAuthType) {
|
||||
this.storage.setItem('AUTH_TYPE', authType);
|
||||
}
|
||||
}
|
||||
|
||||
/** @deprecated in 2.4.0 */
|
||||
get authType(): string {
|
||||
return this.storage.getItem('AUTH_TYPE') || 'ALL';
|
||||
}
|
||||
|
||||
/** Prevents the CSRF Token from being submitted if true. Only valid for Process Services. */
|
||||
set disableCSRF(csrf: boolean) {
|
||||
let storedCSRF = this.storage.getItem('DISABLE_CSRF');
|
||||
@@ -253,8 +238,16 @@ export class UserPreferencesService {
|
||||
this.storage.setItem('oauthConfig', JSON.stringify(oauthConfig));
|
||||
}
|
||||
|
||||
get sso(): boolean {
|
||||
return this.providers === 'OAUTH' && this.oauthConfig.implicitFlow;
|
||||
get authType(): string {
|
||||
if (this.storage.hasItem('authType')) {
|
||||
return this.storage.getItem('authType');
|
||||
} else {
|
||||
return this.appConfig.get<string>('authType');
|
||||
}
|
||||
}
|
||||
|
||||
set authType(authType: string) {
|
||||
this.storage.setItem('authType', authType);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user