From d3142c1aabf629b8b68d97f21221a27cd99fcd96 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 28 Apr 2022 15:52:08 +0200 Subject: [PATCH] removed wrong code --- shinyproxy/pep.js.j2 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/shinyproxy/pep.js.j2 b/shinyproxy/pep.js.j2 index d2dbb18..5da0009 100644 --- a/shinyproxy/pep.js.j2 +++ b/shinyproxy/pep.js.j2 @@ -32,10 +32,6 @@ function enforce(r) { } context.userinfo = { username : jwt.preferred_username } return Promise.resolve(context) - } else { - debug(context, "[PEP] failed " + reply.status + ":" + reply.responseBody) - throw new Error("Unauthorized") - } }).then(ctx => { debug(context, "[HOMESERV] creating home for username " + context.userinfo.username) return context.request.subrequest("/_homeserv", {"body" : "user=" + context.userinfo.username })