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