oidc-client-js icon indicating copy to clipboard operation
oidc-client-js copied to clipboard

Question about nonce behavior

Open arnaldo-infinite opened this issue 8 years ago • 4 comments

I did not find any explanation for which i am looking for in the docs or previous issues, hence I would like to ask from here. The nonce value is supposed to be sent during the authentication request and obtain it via the identity token to ensure and prevent replay attacks. Where before implementing a nonce value, by default I could see a nonce being generated and passed in the identity token obtained via the authentication response. Is this a natural behavior and can i used it for replay verification ?

arnaldo-infinite avatar Sep 11 '18 05:09 arnaldo-infinite

As of now the nonce is all handled internally

brockallen avatar Sep 11 '18 13:09 brockallen

Hey Brock, thank you so much for the quick response. I would like to confirm if the same applies to the behavior of the "state" parameter which is used to maintain state between the request and the callback?

arnaldo-infinite avatar Sep 11 '18 14:09 arnaldo-infinite

state is for you to use anyway you want

brockallen avatar Sep 11 '18 14:09 brockallen

Cool, I've got all my answers. Great work on this library mate. Thank you so much for your efforts. 🥇

arnaldo-infinite avatar Sep 11 '18 14:09 arnaldo-infinite