The method “authenticate” from “AuthenticationClient” throws an “com.okta.authn.sdk.AuthenticationException”. This “AuthenticationException” implements “com.okta.sdk.error.Error”, but my IDE does not find this class. I found out, that it can be found in an very old “okta-sdk-api” version, but then other things are not working.
How can it be? Is there a new way how to authenticate using username and password?
Previously I tried it using the okta api with version as stated here GitHub - okta/okta-auth-java: okta-auth-java. I tried it again with that in my pom.xml. I used “okta-http-httpclient” instead, because the other one used in github is deprecated as stated in maven repo:
Now it even does not find the import for the class “AuthenticationClient”. How is that possible? The whole documentation in github is simply deprecated.