CAMEL-21922 - Add support for adding OAuth2 scope as query or form parameter#17634
CAMEL-21922 - Add support for adding OAuth2 scope as query or form parameter#17634Jefwillems wants to merge 2 commits intoapache:mainfrom
Conversation
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
|
This seems to already exist in another PR. I just didn't find the JIRA issue. closing now |
Description
This pull request adds an option to add the oauth scope as either a query param (default, so it doesn't break anything) or as a form parameter. When testing the current implementation we noticed EntraId not picking up the scope when added as a query param. We ended up writing our own HttpClientConfigurer to add it in the form, but this might be cleaner. documentation about this can be found here: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow#first-case-access-token-request-with-a-shared-secret
Target
mainbranch)Tracking
Apache Camel coding standards and style
I checked that each commit in the pull request has a meaningful subject line and body.
I have run
mvn clean install -DskipTestslocally from root folder and I have committed all auto-generated changes.