duosecurity / duo_universal_java

Duo OIDC-based two-factor authentication for Java web applications
https://duo.com/docs/duoweb
Other
14 stars 21 forks source link

duo.redirect.uri =? #13

Closed ishhwar closed 3 years ago

ishhwar commented 3 years ago

Hi , Wat value should i give duo.redirect.uri =? here as i am not able to find this field value

AaronAtDuo commented 3 years ago

@ishhwar That value will depend on your environment. It needs to be a URI that points back to the web application, specifically to a handler that will run the plugin code.

For example, if you are protecting www.example.com, and you have configured /duo to be the endpoint that will run the plugin code, you would enter duo.redirect.uri=https://www.example.com/duo

For another example, if you run the example app provided in this repo, the value would look something like duo.redirect.uri=http://localhost:8080/duo-callback (the example by default runs on localhost on port 8080) You can see at https://github.com/duosecurity/duo_universal_java/blob/main/duo-example/src/main/java/com/duosecurity/controller/LoginController.java#L123 that /duo-callback is configured to run the plugin code.

AaronAtDuo commented 3 years ago

Closing for now, please let us know if this is still unclear.