You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 20.04 LTS
Reproduction steps
Configure d Open ID Connect as security provider
Use Manual entry for configuration mode
Set all URLs including token server url
Chose Token authentication method Post
Expected Results
Expected that plugin sends POST requests to token server URL (<keycloak server>/protocol/openid-connect/token)
Actual Results
Instead a GET requests is received:
Keycloak logs
Jan 10 16:25:55 pg-keycloak kc.sh[1160135]: 2025-01-10 16:25:55,926 TRACE [io.vertx.ext.web.impl.RouterImpl] (vert.x-eventloop-thread-1) Router: 635576031 accepting request GET [****]/realms/Corp/protocol/openid-connect/token
Jenkins exception:
Jan 10 16:25:55 pg-jenkins jenkins[846]: org.pac4j.core.exception.TechnicalException: Bad token response, error=HTTP 405 Method Not Allowed, description=For more on this error consult the server log at the debug level.
Jan 10 16:25:55 pg-jenkins jenkins[846]: at PluginClassLoader for oic-auth//org.pac4j.oidc.credentials.authenticator.OidcAuthenticator.executeTokenRequest(OidcAuthenticator.java:206)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at PluginClassLoader for oic-auth//org.pac4j.oidc.credentials.authenticator.OidcAuthenticator.validate(OidcAuthenticator.java:165)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at PluginClassLoader for oic-auth//org.pac4j.core.client.BaseClient.lambda$retrieveCredentials$0(BaseClient.java:75)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at java.base/java.util.Optional.ifPresent(Optional.java:178)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at PluginClassLoader for oic-auth//org.pac4j.core.client.BaseClient.retrieveCredentials(BaseClient.java:72)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at PluginClassLoader for oic-auth//org.pac4j.core.client.IndirectClient.getCredentials(IndirectClient.java:145)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at PluginClassLoader for oic-auth//org.jenkinsci.plugins.oic.OicSecurityRealm.doFinishLogin(OicSecurityRealm.java:1276)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:416)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:429)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:211)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:138)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:644)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:61)
Jan 10 16:25:55 pg-jenkins jenkins[846]: at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered:
Seems the problem was introduced in version 4.388.v4f73328eb_d2c.
Just tested successfully with version 4.371.vc7c0c06e8a_f5.
When installing the next release 4.388.v4f73328eb_d2c, even with 'Disable Token Expiration Check' enabled, the mentioned issue occurs.
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu 20.04 LTS
Reproduction steps
Post
Expected Results
Expected that plugin sends POST requests to token server URL (
<keycloak server>/protocol/openid-connect/token
)Actual Results
Instead a GET requests is received:
Keycloak logs
Jenkins exception:
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: