Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass parameters to Invoke-WebRequest from New-RsRestSession #410

Open
ryan-adler opened this issue Aug 28, 2023 · 2 comments
Open

Comments

@ryan-adler
Copy link

We van no longer deploy reports using New-RsRestSession cmdlet to a non-SSL internal URL. We get the error:

The cmdlet cannot protect plain text secrets sent over unencrypted connections. To suppress this warning and send plain text secrets over unencrypted networks, reissue the command specifying the AllowUnencryptedAuthentication parameter.

We would like to set the AllowUnencryptedAuthentication parameter, but we are not aware of any way to send this to the internal commands that the cmdlet calls.

This used to work in previous versions (without any flag setting), but it seems that since newer versions require newer Powershell, this is blocking us from deploying.

@dfinlen
Copy link

dfinlen commented Feb 29, 2024

We have the same issue. Please respond, if at all possible.

@schwarrior
Copy link

Created a fork that will work with non-SSL Report Servers:

https://github.com/schwarrior/HttpEnabledSsrsPsTools

The inherited cmdlets were modified to pass a new security gate added to PowerShell 6.0.

Use at your own risk.

Invoking web (or intranet) endpoints that don't support HTTPS requires the inclusion of a new confirmation flag.

In this fork, all instances of Invoke-WebRequest and Invoke-RestMethod within module functions now include the -AllowUnencryptedAuthentication flag.

Replaced 78 results in 27 files.

Ability to use a HTTP only Reporting Server portal restored.

Updated module name and .net namespace name to match fork.

Removed scripts that would deploy to public pckg repositories.

Replaced any install scripting referencing github or any public pckg repo. Replaced with local install commands.

Added disclaimer to top of ReadMe.md regarding the risk of exposing login info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants