Skip to content

Commit

Permalink
NONCE and CV cookies as secure for pkce
Browse files Browse the repository at this point in the history
  • Loading branch information
SiCoe committed Sep 22, 2023
1 parent f4c0e44 commit d9e32aa
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 d9e32aa

Please sign in to comment.