Skip to content

Commit

Permalink
fix: check DPoP htm as case-sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 15, 2020
1 parent e3efd56 commit 33223ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/helpers/oidc_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ module.exports = function getContext(provider) {
throw new Error('must have a jti string property');
}

// HTTP Methods are case-insensitive
if (String(payload.htm).toLowerCase() !== this.ctx.method.toLowerCase()) {
if (payload.htm !== this.ctx.method) {
throw new Error('htm mismatch');
}

Expand Down

0 comments on commit 33223ff

Please sign in to comment.