node-server-screenshot
node-server-screenshot copied to clipboard
Capture an sso enabled website
Hi, I have a requirement to capture a website which is sso enabled. Since this is a server side screenhot capture engine, is there a possibility of capturing such a screenshot ? If not can you please guide on how can that be achieved ? Thanks, Rajat
Hi @RajatSomani13
By SSO, are you referring to a single sign-on? And if so, what are you trying to achieve so that i could point you in the right direction.
Hi @legraphista Thanks for responding. Yes, by SSO I meant single sign on. Basically I have an application which shows multiple websites (SSO enabled) embedded in an iframe. I have requirement to take screenshot of these websites and render it to user as a preview. Since iframes have lot of security constraints, it is very difficult or impossible for me to capture screenshots client side. While searching for server side approach to the same, I came across node-server-screenshot. Now since node-server-screenshot opens a headless browser to take screenshot, I am not sure if SSO will percolate to this headless browser too and hence not sure if screenshot is possible. Appreciate your help on this. Thanks, Rajat
Have a look over https://github.com/segmentio/nightmare
It's a fully programmable browser based on the Electron/Chromium project.
This package is also based on Nightmare, but uses few of it core functions, such as goto
, wait
and screenshot
Thanks for your help. Will surely look at it.