What is authentication in a java standalone application?


#1

For example, try swing, swt, rcp, and so on using duo. I tried to run it using https://github.com/duosecurity/duo_client_java, but I get the following error:

Duo Verify Demo
org.apache.commons.cli.MissingOptionException: Missing required options: host, ikey, skey, username
at org.apache.commons.cli.Parser.checkRequiredOptions (Parser.java:299)
at org.apache.commons.cli.Parser.parse (Parser.java:231)
at org.apache.commons.cli.Parser.parse (Parser.java:85)
at com.duosecurity.example.DuoVerify.main (DuoVerify.java:48)
Missing required options: host, ikey, skey, username
usage: DuoVerify
-help Print this message
-host ■■■■
-ikey xxxxxxxxxxx
-skey xxxxxxxxxxxxx
-username hanxxxxxxxxxxx@gmail.com

Please give me the appropriate example.


#2

Hello HyunJong_Cho!

What exactly are you trying to accomplish? Have you reviewed our Auth API documentation? The ikey/skey/akey are obtained from the Duo Admin Panel and configured within your application, as described here.

Note that we no longer offer the Verify API, so it’s not possible to demo those endpoints (which looks like what you’re trying).


How do i authenticate with Eclipse RCP?