Skip to content

Commit

Permalink
Merge pull request #341 from jason-fox/jason-fox-patch-1
Browse files Browse the repository at this point in the history
Fix #340 - only bar access_token as header
  • Loading branch information
apozohue10 committed Oct 9, 2023
2 parents a258dcd + 1bd498f commit 306c988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/oauth2/oauth2.js
Expand Up @@ -470,7 +470,7 @@ exports.authenticate_token = function (req, res) {
access_token: req.query.access_token || header_access_token
};

if (options.authzforce && (options.action || options.resource || options.service_header || options.access_token)) {
if (options.authzforce && (options.action || options.resource || options.service_header || header_access_token )) {
const error = {
message: 'Cannot handle 2 authentications levels at the same time',
code: 400,
Expand Down

0 comments on commit 306c988

Please sign in to comment.