Jumoo / uSync.Complete.Issues

Public Issue tracker and roadmap for uSync.Complete
https://jumoo.co.uk/usync/complete/
2 stars 1 forks source link

Cannot add local Current Server - fails auth #234

Closed ctolkien closed 3 days ago

ctolkien commented 4 days ago

When attempting to "Add this server", that being the current server, it fails with Connection Test : Unauthorized

AppId and Key have been set and double checked. Screenshot confirms it is there (and I've checked the config files)

Exact same code running locally works just fine. This is running in Azure Container Apps.

Umbraco 13. uSync latest for v13.

image

image

Documentation makes mention of setting a baseUrl in case the proxy is causing problems, but that doesn't appear to be a thing anymore. We are using forwarded headers in the MVC pipeline anyway.

ctolkien commented 4 days ago

Also worth pointing that I also cannot add this server from another host- fails with the same unauthorised error.

KevinJump commented 4 days ago

Hi,

You can set the baseUrl, once the server is setup (so you can still set it up with a unauthorized result).

one the server page if you go to the server advanced tab, there is a baseUrl value at the bottom.

https://docs.jumoo.co.uk/usync/complete/setup/publisher/send#baseurl

(my guess would be the certificate is applied in a diffrent place so the base needs to be http vs https)

if that is still causing an issue you can set "IncludeHost" to false in the config. (https://docs.jumoo.co.uk/usync/complete/setup/publisher/config#appsettingsjson-config-file) and then it won't care about the host name as part of the signing of the messages between servers (they are still using the appid/appkey just not the server name)

ctolkien commented 3 days ago

Setting includeHost to false has fixed it. The cert is definetly being applied closer to the edge than my app, however the fwd'd scheme headers should still have the request showing as being https.