diff --git a/oauth2-token-introspection-plus/frontend.conf b/oauth2-token-introspection-plus/frontend.conf index b6967edb..638c3e7e 100644 --- a/oauth2-token-introspection-plus/frontend.conf +++ b/oauth2-token-introspection-plus/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 { @@ -54,4 +54,4 @@ server { } } -# vim: syntax=nginx \ No newline at end of file +# vim: syntax=nginx