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

[vdk-plugins] vdk-control-api-auth: Fix query key type #838

Merged
merged 1 commit into from
May 19, 2022

Conversation

doks5
Copy link
Contributor

@doks5 doks5 commented May 18, 2022

When parsing the query parameters from the redirect_url in the
authorization code authentication flow, we converted the key of
the parameter to bytes, which was causing TypeErrors due to missing
encoding. This regression was not caught by the unit tests.

This change fixes the regression by using plain strings as keys
and removing any conversions to bytes.

Additionally, unit test was fixed and extended to catch possible
future regressions.

Testing Done: Unit tests

Signed-off-by: Andon Andonov [email protected]

When parsing the query parameters from the redirect_url in the
authorization code authentication flow, we converted the key of
the parameter to bytes, which was causing TypeErrors due to missing
encoding. This regression was not caught by the unit tests.

This change fixes the regression by using plain strings as keys
and removing any conversions to bytes.

Additionally, unit test was fixed and extended to catch possible
future regressions.

Testing Done: Unit tests

Signed-off-by: Andon Andonov <[email protected]>
@doks5 doks5 merged commit a6b71ef into main May 19, 2022
@doks5 doks5 deleted the person/andonova/vdk-auth branch May 19, 2022 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants