When an object of the class {{XWiki.OIDC.ClientConfigurationClass}} has an empty {{userInfoRefreshRate}} property, then it fallbacks to 0.
This is because of {{ org.xwiki.contrib.oidc.auth.store. OIDCClientConfiguration#getUserInfoRefreshRate()}} uses {{BaseCollection#getIntValue()}} which returns an {{int}} and not an {{Integer}}, so the value cannot be {{null}}. See: https://github.com/xwiki-contrib/oidc/blob/2f5602fe2990109f96348939f2389024c912237b/oidc-authenticator-configuration/src/main/java/org/xwiki/contrib/oidc/auth/store/OIDCClientConfiguration.java#L563
It is a bug, because the expected behavior should be like {{ org.xwiki.contrib.oidc.auth.internal. OIDCClientConfiguration#getUserInfoRefreshRate()}} which returns {{600000}} when the property is not filled (see: https://github.com/xwiki-contrib/oidc/blob/2f5602fe2990109f96348939f2389024c912237b/oidc-authenticator/src/main/java/org/xwiki/contrib/oidc/auth/internal/OIDCClientConfiguration.java#L709).
As a result, we have performances problems. |
|