node-oauth icon indicating copy to clipboard operation
node-oauth copied to clipboard

Does this library supports state parameter

Open byteshiva opened this issue 9 years ago • 1 comments

Does this library supports state parameter to retain the application state after redirect to third-party source.

As described in oauth2 RFC draft

   state
         RECOMMENDED.  An opaque value used by the client to maintain
         state between the request and callback.  The authorization
         server includes this value when redirecting the user-agent back
         to the client.  The parameter SHOULD be used for preventing
         cross-site request forgery as described in Section 10.12.

http://tools.ietf.org/html/rfc6749#section-4.1.1

byteshiva avatar Jul 06 '16 07:07 byteshiva

Take a look at the GitHub example, it shows how to set the state parameter.

mlafleur avatar Oct 07 '16 21:10 mlafleur