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

feat: Pass additional parameters to auhtorization url #447

Merged
merged 2 commits into from Sep 7, 2023

Conversation

bajajneha27
Copy link
Contributor

No description provided.

@bajajneha27 bajajneha27 requested a review from a team as a code owner September 4, 2023 12:36
it_behaves_like "valid authorization url"

it "includes the additional parameters" do
expect(URI(uri).query).to match(/param1/)

Choose a reason for hiding this comment

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

check the value as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

client_secret: @client_id.secret,
redirect_uri: redirect_uri_for(base_url),
scope: scope,
additional_parameters: options[:additional_parameters]

Choose a reason for hiding this comment

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

Can you please point me to where the additional_parameters parameter is defined and how is it added to the url

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Here it is signet#client.rb

@bajajneha27 bajajneha27 merged commit a3cdc48 into googleapis:main Sep 7, 2023
12 checks passed
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

3 participants