KB0018 - An anonymous request was received in between authentication handshake requests.

KB0018 - An anonymous request was received in between authentication handshake requests.

Symptom #1

PowerShell Universal returns a 500 error when visiting the website that is using Windows Authentication. 

Symptom #2

When viewing the log file in C:\ProgramData\PowerShellUniversal or within the admin console under Settings \ General \Diagnostics, there is an error message with the following content: An anonymous request was received in between authentication handshake requests.

Root Cause

The root cause of this issue is an invalid or unconfigured SPN for the machine running PowerShell Universal. 

Solution

Ensure that an SPN has been correctly created within your domain. An example command would look like: 
  1. setspn -S HTTP/myservername.mydomain.com myuser
You can view configured SPNs by using the following command. 
  1. setspn -l myservername.mydomain.com
For more information, read our documentation on Windows Authentication

    • Related Articles

    • KB0026 - Authentication failure when connecting to BitBucket using a HTTP Access Token

      Applicability This article applies to any version of PowerShell Universal with git sync enabled. Symptom When attempting to synchronize with a BitBucket git repository using a HTTP Access Token generated from the BitBucket repository, it fails to ...
    • "[WARN] Call failed. An error occurred while sending the request." message in all jobs

      Version: Any Root Cause When PowerShell Universal starts a new job, it uses the Management API to retrieve job information from the server. It does this over HTTP and will generate a Read-Only app token for the identity of the user that started or ...
    • KB - 1008 Tax/VAT Exempt at checkout

      Scope In this article you will learn how to make a tax-free purchase at checkout. Problem How do you remove the Tax/VAT on an order? Impact Orders will then need to be refunded for tax if processed without the tax deducted. Resolution Follow the ...
    • KB0063 - API, App or Job Not Starting

      Problem External processes do not start after upgrades or with the same configuration and script on different machines. Common errors in the log will include: [ERR] Dashboard process running but not response after 10 seconds. Terminating process. ...
    • KB0069 - PowerShell Universal Startup Process

      Purpose The purpose of this document is to outline the steps that PowerShell Universal takes when starting up. Process 1. Insert current product version and install date in database Updates the database with a record about the current product version ...