Skip to content

Conversation

@eloycoto
Copy link
Contributor

@eloycoto eloycoto commented Sep 1, 2021

This is a second patch, and it's related to PR #1304.

When using remotev2 loader, the config.oidc is created in there, and
there is also a caching mechanism for OIDC[0], so we need to append the
service_id and send a valid table in case of non OIDC setup.

Because this oidc is cached, we also do a deepcopy, to avoid to use
always the same reference, so the config.oidc[i].service_id is always
different and we didn't get a invalid filtering.

This is only failing when using APICAST_SERVICE_LIST

[0] Commit: 720cd99
Related to: THREESCALE-6042

Signed-off-by: Eloy Coto eloy.coto@acalustra.com

@eloycoto eloycoto requested a review from a team as a code owner September 1, 2021 08:42
assert.equals('Expected object key string but found invalid token at character 3', err)
end)

it('treturns configuration with oidc config complete', function()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo treturns

This is a second patch, and it's related to PR #1304.

When using remotev2 loader, the config.oidc is created in there, and
there is also a caching mechanism for OIDC[0], so we need to append the
service_id and send a valid table in case of non OIDC setup.

Because this oidc is cached, we also do a deepcopy, to avoid to use
always the same reference, so the config.oidc[i].service_id is always
different and we didn't get a invalid filtering.

This is only failing when using APICAST_SERVICE_LIST

[0] Commit: 720cd99
Related to: THREESCALE-6042

Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
@eloycoto eloycoto merged commit c613245 into master Sep 1, 2021
@eguzki eguzki deleted the OIDCFilterIssueb branch August 17, 2022 11:12
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