From 832ad1cb9ce8d09c5c49ba04a4fcff042520e02a Mon Sep 17 00:00:00 2001 From: nginx-gists Date: Thu, 27 Jan 2022 14:51:36 -0800 Subject: [PATCH] Update oauth2.js Add 'export' of function to comply with use of js_import instead of js_include --- oauth2-token-introspection-plus/oauth2.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oauth2-token-introspection-plus/oauth2.js b/oauth2-token-introspection-plus/oauth2.js index 9b679997..610f2e2b 100644 --- a/oauth2-token-introspection-plus/oauth2.js +++ b/oauth2-token-introspection-plus/oauth2.js @@ -15,7 +15,7 @@ * headers. These in turn are available to the auth_request location with the auth_request_set * directive. Each member of the response is available to nginx as $sent_http_token_ * - * Copyright (C) 2019 Nginx, Inc. + * Copyright (C) 2022 F5, Inc. */ function introspectAccessToken(r) { if (r.variables.token_data) { @@ -87,4 +87,6 @@ function tokenResult(r) { r.error("OAuth stored token introspection response is not JSON"); r.return(401); } -} \ No newline at end of file +} + +export default { introspectAccessToken }