Skip to content

Make use of polling wait callback within Duo authentication module#204

Merged
pavelhoral merged 1 commit intoWrenSecurity:mainfrom
kovaceviccz:make-use-of-polling-wait-callback-within-duo-authentication-module
Jul 18, 2025
Merged

Make use of polling wait callback within Duo authentication module#204
pavelhoral merged 1 commit intoWrenSecurity:mainfrom
kovaceviccz:make-use-of-polling-wait-callback-within-duo-authentication-module

Conversation

@kovaceviccz
Copy link
Copy Markdown
Contributor

@kovaceviccz kovaceviccz commented Jul 16, 2025

This PR adds a PollingWaitCallback to the Duo authentication module, allowing the UI to poll the authentication state without requiring additional logic. Additionally, RESTLoginView.js was updated to correctly handle stale polling state. Previously, the form would not re-render when two or more consecutive authentication modules included a PollingWaitCallback, or when authentication was preceded by a failure in a stage that also used PollingWaitCallback.

@kovaceviccz kovaceviccz changed the title Make use of polling wait callback within duo authentication module Make use of polling wait callback within Duo authentication module Jul 16, 2025
Comment thread openam-authentication/wrenam-auth-duo/src/main/resources/amAuthDuo.properties Outdated
@kovaceviccz kovaceviccz force-pushed the make-use-of-polling-wait-callback-within-duo-authentication-module branch from c36ecb8 to 3d456b0 Compare July 17, 2025 16:53
@kovaceviccz
Copy link
Copy Markdown
Contributor Author

Thanks for the review, @pavelhoral. Turns out I had a flawed understanding of the Duo authentication module. I've just pushed a new version of the PR that makes use of the polling wait callback in a more conservative manner, while still addressing the form re-render concern. Let me know what you think now.

Copy link
Copy Markdown
Member

@pavelhoral pavelhoral left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ty.

@pavelhoral pavelhoral merged commit 8342e42 into WrenSecurity:main Jul 18, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants