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
Support custom auth params for oauth #16812
Support custom auth params for oauth #16812
Conversation
Codecov ReportAttention:
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. |
Test Results 1 009 files 1 009 suites 6h 5m 19s ⏱️ For more details on these errors, see this check. Results for commit 3db638e. ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for the PR that's great. I left one nit comment.
Also, would you mind adding one more test here to ensure we are forwarding the parameters to the fetch_token
function?
We will take care of updating the documentation for the various integrations that can use this option in a follow-up PR
fea771a
to
e7fbbf8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This feature will be shipped with Agent 7.52.0
* Support custom auth params * Add changelog * Add space line * Fixed comment * Add test for auth_params * Format code * Rename to options
https://github.com/DataDog/integrations-core/milestone/56 It seems that the pr for milestone 7.52.0 is all done, when is it scheduled to be released, is there any recommended way to test it, thanks @FlorentClarret |
Agent 7.52.0 will officially go out in March, I don't have the exact date I'm sorry. Since this change lives in the base check, there's currently no way to test it on older versions of the Agent. For testing purposes, you could use the release candidate version that will be available today on docker hub. |
What does this PR do?
Motivation
Some OAuth2 platforms have some additional oauth parameters, e.g. auth0 supports
audience
, azure AD OAuth2 hasscope
, add this change to support passing custom oauth2 parametersAdditional Notes
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.