PDF DocGen with SAML SSO

0
Dear Mendix Community,   I was wondering whether anyone had had any success using the PDF Document Generation Module in an app that also uses SAML SSO?   It was so exciting to see that the module could now be used on apps in Dedicated Mendix Cloud, as PDF generation is a must-have for our app, but the document generation method clashes with the SAML setup for Azure SSO and produces this error when tested locally - [Failed to generate document due to an external redirect to: "https://login.microsoftonline.com/xxxxxxxxxxxxxx/saml2"] or this error when tested in the cloud - [java.lang.RuntimeException: Timeout while waiting for document content; no content was received at AppName.SUB_ExampleDocument_Generate (JavaAction : 'Generate PDF from page')] The app was registered successfully as per the documentation. I'm aware that there is the limitation - 'Widgets or add-ons for your index.html file that perform long polling network requests are not supported. The document generation service waits until there are no more pending network requests.' - in the Mendix docs, but this seems to be a bit of a deal-breaking limitation considering SSO is popular and often mandatory.   Any ideas/knowledge/workarounds welcome!
asked
2 answers
0

Turned out the answer was a combination of

https://docs.mendix.com/appstore/modules/document-generation/#system-task

and

https://docs.mendix.com/appstore/modules/saml/#ssolandingpage

answered
0

Screenshot 1

 

Screenshot 1

 

Screenshot 2

image.png

 

Screenshot 3

image.png

 

Screenshot 4

image.png

answered