[ADF-3912] Setting Component - Return as default BASIC authType (#3495)

* Return as default BASIC authType

* remove the commented line
This commit is contained in:
Maurizio Vitale
2018-06-18 10:53:57 +01:00
committed by Eugenio Romano
parent 5b3fb4856d
commit ae73839e56
2 changed files with 6 additions and 5 deletions

View File

@@ -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();
}