That seems to have fixed the issue with POST API’s, they now work through authentication, however there are more issues…
Scripts dont run anymore, they sit in ‘queued’ status:

In hangfire, i see an error:
Error Details:
Failed
Can not change the state to ‘Enqueued’: target method was not found.
Newtonsoft.Json.JsonSerializationException
Error setting value to ‘Roles’ on ‘PowerShellUniversal.Identity’.
Newtonsoft.Json.JsonSerializationException: Error setting value to ‘Roles’ on ‘PowerShellUniversal.Identity’.
—> System.ArgumentNullException: Value cannot be null. (Parameter ‘value’)
at System.String.Join(String separator, String value)
at PowerShellUniversal.Identity.set_Roles(String value) in D:\a\universal\universal\src\PowerShellUniversal\Models\Identity.cs:line 28
at Newtonsoft.Json.Serialization.ExpressionValueProvider.SetValue(Object target, Object value)
— End of inner exception stack trace —
at Newtonsoft.Json.Serialization.ExpressionValueProvider.SetValue(Object target, Object value)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EndProcessProperty(Object newObject, JsonReader reader, JsonObjectContract contract, Int32 initialDepth, JsonProperty property, PropertyPresence presence, Boolean setDefaultValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Hangfire.Common.SerializationHelper.Deserialize(String value, Type type, SerializationOption option)
at Hangfire.Storage.InvocationData.DeserializeArgument(String argument, Type type)
— End of stack trace from previous location —
at Hangfire.Storage.InvocationData.DeserializeArgument(String argument, Type type)
at Hangfire.Storage.InvocationData.DeserializeArguments(MethodInfo methodInfo, String arguments)
at Hangfire.Storage.InvocationData.DeserializeJob()
I have cleaned down the entire build, deleted the SQL db and recreated, renamed .universal folder so its a clean install. I then created one Script called 'TestScript.ps1"
This has content of “Hello”, if i run it, it sits as queued as above - this is a bug but its not stopping me testing other areas like API’s. I then have created an API to trigger the ‘TestScript.ps1’

I then trigger this script (no auth) and get:
I do see the error in PSU - Endpoints - Log:

For some reason i do not have a trace in the logs for this 400 latest error in the logs.