node-server-screenshot icon indicating copy to clipboard operation
node-server-screenshot copied to clipboard

Capture an sso enabled website

Open RajatSomani13 opened this issue 4 years ago • 4 comments

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

RajatSomani13 avatar May 01 '20 01:05 RajatSomani13

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.

legraphista avatar May 04 '20 10:05 legraphista

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

RajatSomani13 avatar May 04 '20 18:05 RajatSomani13

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

legraphista avatar May 05 '20 07:05 legraphista

Thanks for your help. Will surely look at it.

RajatSomani13 avatar May 05 '20 17:05 RajatSomani13