Skip to content

Format and filter session_required_* query parameters - #1430

Merged
kurtmckee merged 2 commits into
mainfrom
update-get_authorize_url-issue-1425
Sep 10, 2026
Merged

Format and filter session_required_* query parameters#1430
kurtmckee merged 2 commits into
mainfrom
update-get_authorize_url-issue-1425

Conversation

@kurtmckee

Copy link
Copy Markdown
Member

Fixed

  • Format and filter session_required_* query parameters when generating authorization URLs.

Fixes #1425

@sirosen sirosen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worked out to be about as clean as I could hope.

I have one optional change which I leave open to you as the author, but I would be happy to merge this as it stands. Therefore, approved!

encoded_params = urllib.parse.urlencode(params)
return f"{authorize_base_url}?{encoded_params}"

return super()._get_authorize_url(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's a distinct method name, we could also use self._get_authorize_url(), right? I haven't missed anything?

I ask because I wonder if it should have a more-different name, like self._encode_authorize_url. I'm curious to hear what you think.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an internal function, so I think it could be renamed. However, doing so requires me to return to the code instead of merging it immediately with the existing approval, so I'm inclined to leave it as-is.

Comment thread tests/unit/helpers/test_auth_flow_managers.py
@kurtmckee
kurtmckee merged commit 1ae6bfa into main Sep 10, 2026
12 checks passed
@kurtmckee
kurtmckee deleted the update-get_authorize_url-issue-1425 branch September 10, 2026 14:50
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.

gare.to_dict() returns excessive query parameters

2 participants