-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
Description
Please describe the problem you are having with the documentation. Is information missing, inaccurate, or unclear? Tell us about the context where you encountered the problem so we can understand how to address it.
Doc:
https://openliberty.io/docs/latest/reference/feature/openidConnectClient-1.0.html#jwt
As-is:
Open Liberty selects the openidConnectClient configuration to use for a JWT request according to the following algorithm.
- If the authentication filter for a
openidConnectClientconfiguration matches the request, choose that configuration. - If the issuer claim from the JWT matches the
issuerIdentifierattribute in only oneopenidConnectClientconfiguration element, choose that configuration. - If the issuer claim from the JWT matches the
issuerIdentifierattribute in multipleopenidConnectClientconfiguration elements, choose the first configuration that matches. - If the issuer claim from the JWT does not match the
issuerIdentifierattribute in anyopenidConnectClientconfiguration elements, choose between all of the configuration elements in a nondeterministic manner.
Issue:
Step 4 is not accurate and Step 1 does not explain the one vs multiple case like Step 2 and 3.
Proposal:
Open Liberty selects the openidConnectClient configuration to use for a JWT request according to the following algorithm.
- If the authentication filter matches the request in only one
openidConnectClientconfiguration element, choose that configuration. - If the authentication filter matches the request in multiple
openidConnectClientconfiguration elements, choose one of the configurations in a nondeterministic manner. - If the issuer claim from the JWT matches the
issuerIdentifierattribute in only oneopenidConnectClientconfiguration element, choose that configuration. - If the issuer claim from the JWT matches the
issuerIdentifierattribute in multipleopenidConnectClientconfiguration elements, choose one of the configurations in a nondeterministic manner. - If there is one
openidConnectClientconfiguration without an authentication filter, choose that configuration. - If there are multiple
openidConnectClientconfigurations without an authentication filter, choose one of the configurations in a nondeterministic manner. - If no match is found, determine if an alternative authentication method is available.