mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
use 'oidc' as the default when it's selected (#6338)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user