I am trying to connect to a SharePoint Site having an SSO authentication using PowerShell. But i am unable to do so.
Please note, I am trying it from an external server so i have to do it using CSOM.
Can anyone help me with the script?
maybe the PNP authentication manager can help you :
in specific the class that will let you connect is the webClientauthenticationcontext