Use a provider-hosted App with HTTP

Posted on Updated on

In some cases you may want to use HTTP instead of HTTPS in your ISS Web Site for consuming in your SharePoint Provider-hosted App. Here how to do it

if ((Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null)
    Add-PsSnapin Microsoft.SharePoint.PowerShell
# Allow SPSecurityTokenService over HTTP
$serviceConfig = Get-SPSecurityTokenServiceConfig
$serviceConfig.AllowOAuthOverHttp = $true
Write-Host “You’re about to do a iisreset. Press any key to continue or CTRL+C to cancel.”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s