Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checking for access_token query parameter #294

Merged
merged 5 commits into from May 19, 2020

Conversation

anoadragon453
Copy link
Member

It seems that in python3, Twisted's request.args is a dictionary with keys of type bytes, whereas in python2 the keys are of type str.

So, for now, since we're supporting both python2 and 3, check for both.

sydent/http/auth.py Outdated Show resolved Hide resolved
@anoadragon453 anoadragon453 force-pushed the anoa/access_token_query_parameter branch from 2455674 to 4323c85 Compare May 19, 2020 12:45
@anoadragon453 anoadragon453 requested a review from clokep May 19, 2020 14:58
@anoadragon453 anoadragon453 merged commit 08b4085 into master May 19, 2020
@anoadragon453 anoadragon453 deleted the anoa/access_token_query_parameter branch May 19, 2020 17:27
anoadragon453 added a commit to tristanlins/sydent that referenced this pull request Jun 11, 2020
…cker

* 'master' of github.com:matrix-org/sydent:
  changelog: OpenID auth tokens -> access tokens
  2.0.1
  Add newsfile
  Raise IncorrectSessionTokenException instead of returning it
  Fix documentation for testing skipping the deletion of 3PID invite tokens
  Cleanup and document tests for 3PID invites
  Fix checking for access_token query parameter (matrix-org#294)
  Update pyproject.toml
  Fix project name in pyproject.toml
  Add towncrier config
  Do a deep copy of the config default when parsing a dict
  Add test cases for invite deletion
  Add a config option to disable deleting tokens on bind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants