Shopify OAuth: State parameter useful when the auth server also returns a signed shop id?

Background: I think I understand how the state parameter is used in oAuth to prevent CSFR attacks against the redirect_uri.

Situation: I am looking at this in the context of implementing a Shopify App and am having problems … Continue reading Shopify OAuth: State parameter useful when the auth server also returns a signed shop id?

Does using both a counter and a random nonce make sense for the purpose of reducing the likelihood of replay attacks?

I am aware that using a counter or a random value are both acceptable ways of generating nonces, depending on the circumstances.

The tradeoff with using a counter is the necessity to keep state and sometimes this can be a c… Continue reading Does using both a counter and a random nonce make sense for the purpose of reducing the likelihood of replay attacks?