Describe the bug
When invoking DropboxOAuth2Helper.ProcessCodeFlowAsync(Uri responseUri, string appKey, string appSecret, string redirectUri = null, string state = null, HttpClient client = null, string codeVerifier = null), the one with the state parameter, the state parameter is ignored/abandoned.
To Reproduce
Invoke the DropboxOAuth2Helper.ProcessCodeFlowAsync() (the one that includes a state parameter), and then check the State property on the response. The states should be the same value as passed in but, instead, the value is null.
Expected Behavior
When calling ProcessCodeFlowAsync() with a state parameter the returned OAuth2Response should include the state.
Actual Behavior
When calling ProcessCodeFlowAsync() with a state parameter the returned OAuth2Response's State property is null
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
- What version of the SDK are you using?
v6.8 but I assume the problem has been around for some time.
Additional context
Notice that the OAuthPKCE sample does not test the state whereas the SimpleTest sample does.
Describe the bug
When invoking
DropboxOAuth2Helper.ProcessCodeFlowAsync(Uri responseUri, string appKey, string appSecret, string redirectUri = null, string state = null, HttpClient client = null, string codeVerifier = null), the one with the state parameter, thestateparameter is ignored/abandoned.To Reproduce
Invoke the
DropboxOAuth2Helper.ProcessCodeFlowAsync()(the one that includes astateparameter), and then check theStateproperty on the response. The states should be the same value as passed in but, instead, the value is null.Expected Behavior
When calling
ProcessCodeFlowAsync()with astateparameter the returnedOAuth2Responseshould include the state.Actual Behavior
When calling
ProcessCodeFlowAsync()with astateparameter the returnedOAuth2Response'sStateproperty isnullScreenshots
If applicable, add screenshots to help explain your problem.
Versions
v6.8 but I assume the problem has been around for some time.
Additional context
Notice that the OAuthPKCE sample does not test the state whereas the SimpleTest sample does.