Open koral-- opened 6 years ago
Damn. I've turned it off by default for now. I'm not sure if we want to bring in session cookies. We need to rethink this a bit.
So how to use state in OAuth 2.0?
same issue any update
same issue happened with me, solved by simple set the env variables in bashrc for outh2 options (ignore state option) file and run the command "stf local ...auth-type auth2" have no idea why but error didn't occur again
This issue has been (temporarily) solved long time ago: https://github.com/openstf/stf/commit/762b07bc45dda437f2f3889af12910f0d1c7f1a4 So it seems you are either not using latest version or your cause is different.
@koral-- im working on latest version the issue came up when i throw the oauth2 options via terminal, but worked fine with i add these options on env variables
What is the issue or idea you have? OAuth authorization attempt causes the following exception:
Please provide the steps to reproduce the issue. Open
<stf host>/auth/oauth
page.What is the expected behavior? There is no exception.
It seems that issue is related to this commit: https://github.com/openstf/stf/commit/97633327bba361a2cf7448aae8958f1e885308e8#diff-f2e241ad409d0b7d4568ad3ae8f54adeR60
Indeed, starting
stf-auth
with--oauth-state false
works around this issue. Another approach is to add a session support like exception message says. Here is an example: https://github.com/DroidsOnRoids/stf/commit/10fb3f712001b2505886ef72f8014921c86c2c47I'm not sure what is the best solution. setting oauth-state to false by default? add session support like above or maybe something else? So I'm opening this issue and waiting for suggestions before optionally creating a PR.