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

Add param forceSAM=true when targeting sam endpoint #56

Merged
merged 5 commits into from
Nov 27, 2024

Conversation

Loic-Dumas
Copy link
Contributor

@Loic-Dumas Loic-Dumas commented Nov 7, 2024

Description

All sam call need to have the param forceSAM=true to ensure call are retrieved from SAM and not proxied through IL.

Changes made:

  • Add HostInterceptor to add param forceSAM=true to all calls made to sam end points (prod, stage, test).

@Loic-Dumas Loic-Dumas force-pushed the add-forceSam-param-to-sam-environment-call branch 2 times, most recently from 4f85d92 to e306172 Compare November 7, 2024 16:23
@Loic-Dumas Loic-Dumas force-pushed the add-forceSam-param-to-sam-environment-call branch from e306172 to 6be9b60 Compare November 21, 2024 17:46
@StaehliJ
Copy link
Contributor

If I understand well if a call is possible threw SAM, the parameters forceSAM=true have to be present? It is a bit wired.

this query param have no effect if the call hasn't SAM yet?

@StaehliJ
Copy link
Contributor

StaehliJ commented Nov 27, 2024

Could this interceptor added by the integrators later? But I think not possible. In the future, the OkHttpClient creation should be the responsability of the library user, not the library itself.

@StaehliJ
Copy link
Contributor

If I understand well if a call is possible threw SAM, the parameters forceSAM=true have to be present? It is a bit wired.

this query param have no effect if the call hasn't SAM yet?

After a discussion with Pierre-Yves, he told me the parameters forceSAM=true is used only during migration to SAM and have to be used only with integration layer host name that doesn't have samin it's path.

@Loic-Dumas Loic-Dumas added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit 280f2d2 Nov 27, 2024
5 checks passed
@Loic-Dumas Loic-Dumas deleted the add-forceSam-param-to-sam-environment-call branch November 27, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants