PhilanthropyDataCommons / auth

PDC related extensions that were made for the keycloak auth service
1 stars 1 forks source link

Compile libraries against recent Keycloak #27

Closed bickelj closed 7 months ago

bickelj commented 1 year ago

In order to upgrade Keycloak, the extensions here need to work with the latest version of Keycloak. For at least one of them, this will require import changes and recompilation against a recent Keycloak version.

bickelj commented 1 year ago

Yes, when trying 22.0.1 with current jars and logging in, it almost works (i.e. I got the text) but then:

2023-09-08 19:27:45,912 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-2) Uncaught server error: java.lang.NoSuchMethodError: 'javax.ws.rs.core.Response org.keycloak.forms.login.LoginFormsProvider.createForm(java.lang.String)'
        at org.philanthropydatacommons.auth.twilio.authenticator.SmsAuthenticator.authenticate(SmsAuthenticator.java:99)
        at org.keycloak.authentication.DefaultAuthenticationFlow.processSingleFlowExecutionModel(DefaultAuthenticationFlow.java:445)
bickelj commented 7 months ago

The newly compiled jars are used in both test and prod now.