Claus Ibsen created CAMEL-27226:
-----------------------------------
Summary: camel-google-drive, camel-google-mail - the OAuth access
token is sent only in the Authorization header
Key: CAMEL-27226
URL: https://issues.apache.org/jira/browse/CAMEL-27226
Project: Camel
Issue Type: Bug
Components: camel-google-mail, camel-google-drive
Reporter: Claus Ibsen
Fix For: 4.24.0
The google-drive and google-mail producers set all endpoint options and the
CamelGoogleDrive.* / CamelGoogleMail.* headers on the Google API request. So
the accessToken option is also sent as the access_token query parameter of the
request URL. The OAuth credential of the client already sends the token in the
Authorization header, so the credential options should not be set on the
request.
The same loop is in google-calendar, whose requests have no access_token
parameter, and in the consumers, which only receive the method options. All of
them should use one shared helper in camel-google-common. google-sheets is
handled in CAMEL-27220.
_Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)