Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update oauth2.js #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions oauth2-token-introspection-plus/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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_<member name>
*
* Copyright (C) 2019 Nginx, Inc.
* Copyright (C) 2022 F5, Inc.
*/
function introspectAccessToken(r) {
if (r.variables.token_data) {
Expand Down Expand Up @@ -87,4 +87,6 @@ function tokenResult(r) {
r.error("OAuth stored token introspection response is not JSON");
r.return(401);
}
}
}

export default { introspectAccessToken }