mirror of https://github.com/rancher/dashboard.git
Pass validation when configurating users and groups
The github app auth provider was preventing admins from configuring users and groups because validation will fail without a client secret. Other auth providers, like `shell/edit/auth/oidc.vue`, get around this by short-circuiting to true when not editing the config. Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
This commit is contained in:
parent
34a3e14ad5
commit
d0801db34d
|
|
@ -97,6 +97,11 @@ export default {
|
|||
},
|
||||
|
||||
validationPassed() {
|
||||
// Allows for configuring authorized users and groups
|
||||
if ( this.model.enabled && !this.editConfig ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!this.model.clientId || !this.model.clientSecret) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue