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 plan with cache resource not working #9286

Closed
exalate-issue-sync bot opened this issue Oct 6, 2023 · 4 comments
Closed

OAuth2 plan with cache resource not working #9286

exalate-issue-sync bot opened this issue Oct 6, 2023 · 4 comments

Comments

@exalate-issue-sync
Copy link

exalate-issue-sync bot commented Oct 6, 2023

[[ | #describe-the-bug-describe-the-bug-]| #-describe-the-bug-describe-the-bug-describe-the-bug-describe-the-bug]describe-the-bug-Describe the bug :

We have an API with OAuth 2 plan which is using Cache resource. We have the Propagate Authorization Header off. In Design when using the

{#context.attributes['oauth.client_id']}

EL in Transform Headers with scope Request the value is not being retrieved while on Request_Content it is. If we remove the Cache there is no issue at all for all scopes.

[[ | #to-reproduce-to-reproduce-]| #-to-reproduce-to-reproduce-to-reproduce-to-reproduce]to-reproduce-To Reproduce :

Steps to reproduce the behavior:

  1. Setup AM so it can be used in this API.
  2. Import the API share in this ticket and only change the AM resource to fit your own.
  3. Send a request to the API with Cache and without Cache or with Cache but change the scope on Transform Header policy.
  4. See error

[[ | #expected-behavior-expected-behavior-]| #-expected-behavior-expected-behavior-expected-behavior-expected-behavior]expected-behavior-Expected behavior :

The Cache should not change the behavior of the OAuth 2 Plan and the policy usage.

[[ | #useful-information-useful-information-]| #-useful-information-useful-information-useful-information-useful-information]useful-information-Useful information :

API attached to the ticket.

[[ | #desktop-desktop-]| #-desktop-desktop-desktop-desktop]desktop-Desktop :

  • Environment: APIM 3.15, 3.18, 3.20 Docker-Desktop
  • Browser: Google Chrome

[[ | #attachmentsattachments]| #--attachmentsattachmentsattachmentsattachments]attachmentsAttachments

Echo-1 (7).json

@exalate-issue-sync
Copy link
Author

This issue has been fixed in versions 3.20.20

@Mattiamato
Copy link

Will this be documented in https://docs.gravitee.io/apim/3.x/changelog-3.20.html ?

@marijatimovska
Copy link

This issue has been fixed in versions 3.20.21

@phiz71
Copy link
Member

phiz71 commented Oct 13, 2023

Will this be documented in docs.gravitee.io/apim/3.x/changelog-3.20.html ?

Hello @Mattiamato,
Yes it will be, after the 3.20.21 is released.

There has been a little error when we put the first fixed version. It's not 3.20.20 but 3.20.21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants