mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[ADF-3912] Setting Component - Return as default BASIC authType (#3495)
* Return as default BASIC authType * remove the commented line
This commit is contained in:
parent
5b3fb4856d
commit
ae73839e56
@ -117,8 +117,7 @@ export class AlfrescoApiService {
|
||||
}
|
||||
|
||||
protected initAlfrescoApi() {
|
||||
let oauth: OauthConfigModel = this.appConfig.get<OauthConfigModel>(AppConfigValues.OAUTHCONFIG, null);
|
||||
|
||||
let oauth: OauthConfigModel = Object.assign({}, this.appConfig.get<OauthConfigModel>(AppConfigValues.OAUTHCONFIG, null));
|
||||
if (oauth) {
|
||||
oauth.redirectUri = window.location.origin + (oauth.redirectUri || '/');
|
||||
oauth.redirectUriLogout = window.location.origin + (oauth.redirectUriLogout || '/');
|
||||
@ -130,7 +129,7 @@ export class AlfrescoApiService {
|
||||
ticketBpm: this.storage.getItem('ticket-BPM'),
|
||||
hostEcm: this.appConfig.get<string>(AppConfigValues.ECMHOST),
|
||||
hostBpm: this.appConfig.get<string>(AppConfigValues.BPMHOST),
|
||||
authType: this.appConfig.get<string>(AppConfigValues.AUTHTYPE),
|
||||
authType: this.appConfig.get<string>(AppConfigValues.AUTHTYPE, 'BASIC'),
|
||||
contextRootBpm: this.appConfig.get<string>(AppConfigValues.CONTEXTROOTBPM),
|
||||
contextRoot: this.appConfig.get<string>(AppConfigValues.CONTEXTROOTECM),
|
||||
disableCsrf: this.storage.getItem('DISABLE_CSRF') === 'true',
|
||||
|
@ -79,14 +79,16 @@ export class HostSettingsComponent implements OnInit {
|
||||
|
||||
let providerSelected = this.appConfig.get<string>(AppConfigValues.PROVIDERS);
|
||||
|
||||
const authType = this.appConfig.get<string>(AppConfigValues.AUTHTYPE, 'BASIC');
|
||||
|
||||
this.form = this.formBuilder.group({
|
||||
providersControl: [providerSelected, Validators.required],
|
||||
authType: this.appConfig.get<string>(AppConfigValues.AUTHTYPE)
|
||||
authType: authType
|
||||
});
|
||||
|
||||
this.addFormGroups();
|
||||
|
||||
if (this.appConfig.get<string>(AppConfigValues.AUTHTYPE) === 'OAUTH') {
|
||||
if (authType === 'OAUTH') {
|
||||
this.addOAuthFormGroup();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user