node-oauth
node-oauth copied to clipboard
Does this library supports state parameter
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
Take a look at the GitHub example, it shows how to set the state parameter.