Servlet Authentication with Java

Servlet Authentication with Java

Learn how to use Okta’s Authentication API with Java Servlets.

Adrian Campanaro

Hi I got the following error when running mvn

11:28:57.877 [com.example.joy.servlet.login.Application.main()] ERROR c.o.s.i.h.a.DefaultRequestAuthenticatorFactory - There was an error instantiating com.okta.commons.http.authc.DisabledAuthenticator
java.lang.IllegalStateException: java.lang.NoSuchMethodException: com.okta.commons.http.authc.DisabledAuthenticator.<init>(com.okta.sdk.authc.credentials.ClientCredentials)
at com.okta.commons.lang.Classes.getConstructor(Classes.java:183)
at com.okta.sdk.impl.http.authc.DefaultRequestAuthenticatorFactory.create(DefaultRequestAuthenticator…:56)

Adrian Campanaro

Hi…
Here you state to download full application.
In githib, it only has the starter application, not the final application with all the OKTA java code.

Regards
Adrian

Adrian Campanaro

Hi

Is this the correct version

<okta.sdk.version>1.5.2</okta.sdk.version>
<okta.auth.version>1.0.0</okta.auth.version>