Skip to content

Commit

Permalink
fix: handle DPoP htu validation when mounted in express
Browse files Browse the repository at this point in the history
Closes #572
  • Loading branch information
panva committed Nov 7, 2019
1 parent ae33ef8 commit f34526c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers/oidc_context.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports = function getContext(provider) {
if (payload.htm !== this.ctx.method) {
throw new Error('htm mismatch');
}
if (payload.htu !== `${this.ctx.origin}${this.ctx.path}`) {
if (payload.htu !== `${this.urlFor(this.route)}`) {
throw new Error('htu mismatch');
}

Expand Down

0 comments on commit f34526c

Please sign in to comment.