There's not a single way to take screenshot from a site that requires authentication. There are multiple ways to implement auth in a site so you need to find out which one the site you're looking to shot is using and then try to use our parameters to complete or shortcut the authentication flow.
Here's the video example to take screenshot of a page that requires login: