Skip to content

Commit

Permalink
Merge pull request #39 from iress/DP-481
Browse files Browse the repository at this point in the history
Configure NONCE and CV cookies as `secure` for pkce
  • Loading branch information
SiCoe authored Sep 26, 2023
2 parents 35b12be + d9e32aa commit bf49023
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions authn/pkce.index.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,16 @@ function redirect(request, headers, callback) {
"key": "Set-Cookie",
"value" : cookie.serialize('NONCE', n[1], {
path: '/',
httpOnly: true
httpOnly: true,
secure: true
})
},
{
"key": "Set-Cookie",
"value" : cookie.serialize('CV', challenge[0], {
path: '/',
httpOnly: true
httpOnly: true,
secure: true
})
}
],
Expand Down

0 comments on commit bf49023

Please sign in to comment.