Skip to content

Changing OidcTenantConfig returned from TenantConfigResolver::resolve has no effect #48199

Answered by sberyozkin
maag03 asked this question in Q&A
Discussion options

You must be logged in to vote

@maag03 Do you mean why it is called when the session is already available ? I recall this case, to let resolvers react to a situation where the call with the existing session tries to reach the space covered by another tenant. Resolvers will see the tenant id attribute on the routing context when the session already exists and can return null if the tenant id is correct for a given request url.

As far as `remove' is concerned, the idea was to encapsulate the tenant management.
But I see it caused problems in your case.
I think may be this is what we should do, if the returned config instance is not null and not the same as the already resolved one, we just remove internally the original …

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@sberyozkin
Comment options

@michalvavrik
Comment options

@sberyozkin
Comment options

@sberyozkin
Comment options

@sberyozkin
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@sberyozkin
Comment options

Answer selected by maag03
@maag03
Comment options

@sberyozkin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants