AzureAD / azure-activedirectory-powershell-tokenkey

Scripts to override the Azure Active Directory token signing key.
8 stars 12 forks source link

Use -ContentType in uses of Invoke-WebRequest #3

Closed psignoret closed 8 years ago

psignoret commented 8 years ago

Setting the "Content-Type" header can cause this for some users:

'content-type' header must be modified using the appropriate property or method

I'm not sure when, specifically, this happens, but I've seen it elsewhere. This fix uses the -ContentType parameter that is there for that purpose.

psignoret commented 8 years ago

Addresses this comment: https://azure.microsoft.com/en-us/documentation/articles/active-directory-signing-key-rollover/#comment-2809836546