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

[oauth2] Allow for extra OAuth2 token(s) to be added into the headers #60668

Merged
merged 2 commits into from
Mar 3, 2025

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Feb 19, 2025

Description

This PR adds an oauth2 advanced configuration option to attach extra tokens sent by the OAuth2 token endpoint as HTTP(S) request headers. The UI looks as follow:

image

This can be quite useful when working with OAuth2 service providers such as Google which adds openid tokens to their token replies.

@github-actions github-actions bot added this to the 3.42.0 milestone Feb 19, 2025
Copy link

github-actions bot commented Feb 19, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 80b739b)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 80b739b)

@nyalldawson nyalldawson added Feature Frozen Feature freeze - Do not merge! labels Feb 19, 2025
@nirvn nirvn force-pushed the oauth2_extra_tokens branch from 7846e01 to ffc6c07 Compare February 20, 2025 02:11
@nyalldawson nyalldawson removed the Frozen Feature freeze - Do not merge! label Feb 21, 2025
@nyalldawson
Copy link
Collaborator

@nirvn I find the UI here a little unclear -- in my initial reading I thought the token would be the key name and the second column a hardcoded value to set. But it seems that the first column is just a arbitrary user-set identifier?

Could we do away with that identifier and just use a list for the header keys instead?

@nirvn nirvn removed this from the 3.42.0 milestone Mar 1, 2025
@nirvn nirvn force-pushed the oauth2_extra_tokens branch from ffc6c07 to 80b739b Compare March 1, 2025 05:45
@nirvn
Copy link
Contributor Author

nirvn commented Mar 1, 2025

@nyalldawson , comments addressed, thanks.

@github-actions github-actions bot added this to the 3.44.0 milestone Mar 1, 2025
@nyalldawson
Copy link
Collaborator

Thanks for the flexibility @nirvn!

@nyalldawson nyalldawson merged commit eb55dca into qgis:master Mar 3, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants