From e2aa830bd8d63bfb71658016f83be478decb201a Mon Sep 17 00:00:00 2001 From: Jordan Labrosse Date: Thu, 15 Jun 2023 16:49:03 +0200 Subject: [PATCH] feat: add skip consent for OAuth2 client --- src/routes/consent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/consent.ts b/src/routes/consent.ts index 3c9ec96d..b741500e 100644 --- a/src/routes/consent.ts +++ b/src/routes/consent.ts @@ -82,6 +82,7 @@ export const createConsentRoute: RouteCreator = // If a user has granted this application the requested scope, hydra will tell us to not show the UI. if ( body.skip || + body.client?.skip_consent || (body.client?.client_id && trustedClients.indexOf(body.client?.client_id) > -1) ) {