cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1159
Views
1
Helpful
3
Replies

Does the data-submit_callback work?

Andi.Fairhurst
Level 1
Level 1

I’m trying to setup Duo to protect a website using the Web v2 SDK, and pretty much have it working. However, due to the framework that is being used, I have to setup the duo iframe within the JSP and have used the data-host, data-sig-request and data-submit_callback attributes.
Duo Authentication is working correctly, but the callback function is not being called. Debugging the Duo-Web-v2.js code and it looks like the submitCallback variable is only set during the init() function, and then only from the options, not the data- attributes. The data-attributes are being populated within the ready() function, but at no point does it retrieve the data-submit_callback

Am I missing something, or is the data-submit_callback attribute, although documented, not supported?

3 Replies 3

Amy2
Level 5
Level 5

Hi @Andi.Fairhurst, welcome to the community! Thanks for sharing your question here. You are correct - providing the submit_callback via a data attribute on the iFrame is not supported. The team is aware of this issue, and I shared your post with them for more context.

Andi.Fairhurst
Level 1
Level 1

Hi Amy,

Thanks for confirming what I thought. Can I suggest that the documentation is updated to reflect this, as currently is is listed as a valid attribute

Thanks
/Andi

Absolutely, I’ve shared that documentation change with the team as well. Thank you for pointing this out! We appreciate it.

Quick Links