From d036ac5292e331ef53f19cfbee7b83ecc8c908c6 Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Fri, 2 Aug 2024 14:10:22 -0600 Subject: [PATCH] lint --- .../crd/validators/package-validator.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pepr/operator/crd/validators/package-validator.ts b/src/pepr/operator/crd/validators/package-validator.ts index 67197badd..c255047cd 100644 --- a/src/pepr/operator/crd/validators/package-validator.ts +++ b/src/pepr/operator/crd/validators/package-validator.ts @@ -104,15 +104,15 @@ export async function validator(req: PeprValidateRequest) { // If this is a public client ensure that it only sets itself up as an OAuth Device Flow client if ( client.publicClient && - ( - (client.standardFlowEnabled === undefined || client.standardFlowEnabled) || - (client.secret) || - (client.secretName) || - (client.secretTemplate) || - (client.enableAuthserviceSelector) || - (client.protocol === "saml") || - (!client.attributes || client.attributes["oauth2.device.authorization.grant.enabled"] != "true") - ) + (client.standardFlowEnabled === undefined || + client.standardFlowEnabled || + client.secret || + client.secretName || + client.secretTemplate || + client.enableAuthserviceSelector || + client.protocol === "saml" || + !client.attributes || + client.attributes["oauth2.device.authorization.grant.enabled"] != "true") ) { return req.Deny( `The client ID "${client.clientId}" must _only_ configure the OAuth Device Flow as a public client`,