Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Aug 2, 2024
1 parent 2d10670 commit d036ac5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/pepr/operator/crd/validators/package-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ export async function validator(req: PeprValidateRequest<UDSPackage>) {
// 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`,
Expand Down

0 comments on commit d036ac5

Please sign in to comment.