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:
Phillip Rak 2025-10-21 13:42:44 -07:00
parent 34a3e14ad5
commit d0801db34d
1 changed files with 5 additions and 0 deletions

View File

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