use 'oidc' as the default when it's selected (#6338)

This commit is contained in:
Matthew Irish
2019-03-05 10:03:54 -06:00
committed by GitHub
parent 8b4e30c1a1
commit 00d9bb4368
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ export { ERROR_WINDOW_CLOSED, ERROR_MISSING_PARAMS };
export default Component.extend({
store: service(),
selectedAuthPath: null,
selectedAuthType: null,
roleName: null,
role: null,
onRoleName() {},
@@ -52,7 +53,7 @@ export default Component.extend({
// debounce
yield timeout(WAIT_TIME);
}
let path = this.selectedAuthPath || 'jwt';
let path = this.selectedAuthPath || this.selectedAuthType;
let id = JSON.stringify([path, roleName]);
let role = null;
try {

View File

@@ -65,6 +65,7 @@
@onSubmit={{action "doSubmit"}}
@onRoleName={{action (mut this.roleName)}}
@roleName={{this.roleName}}
@selectedAuthType={{this.selectedAuthBackend.type}}
@selectedAuthPath={{or this.customPath this.selectedAuthBackend.id}}
@disabled={{authenticate.isRunning}}
>