From 26bccaa3613d5f6045f7f9ed34589dfdcc4976ec Mon Sep 17 00:00:00 2001 From: nginx-gists Date: Thu, 27 Jan 2022 14:38:30 -0800 Subject: [PATCH] Update frontend.conf Use js_import instead of js_include --- oauth2-token-introspection-oss/frontend.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oauth2-token-introspection-oss/frontend.conf b/oauth2-token-introspection-oss/frontend.conf index 5fb0f838..426b9e8f 100644 --- a/oauth2-token-introspection-oss/frontend.conf +++ b/oauth2-token-introspection-oss/frontend.conf @@ -1,4 +1,4 @@ -js_include conf.d/oauth2.js; +js_import conf.d/oauth2.js; map $http_authorization $access_token { "~*^bearer (.*)$" $1; @@ -36,7 +36,7 @@ server { # This location implements an auth_request server that uses the JavaScript # module to perform the token introspection request. internal; - js_content introspectAccessToken; + js_content oauth2.introspectAccessToken; } location = /_oauth2_send_introspection_request { @@ -61,4 +61,4 @@ server { } } -# vim: syntax=nginx \ No newline at end of file +# vim: syntax=nginx