How to get UGS to pull binaries from Horde

I have tried messing around with the Insomnia REST client to help see what’s going on.

GET https://horde01.domain.com/api/v2/artifacts?type=ugs-pcb&key=ugs-project%3D%2F%2FDepot%2FRND1Merge%2FDemo1%2FDemo1.uproject&maxResults=100

It gives me 401 Unauthorised and gives me some info to try to login, including location with a URL to https://login.microsoftonline.com/…, as well as some cookies to try to login.

However, when I do try to change the URL to https://login.microsoftonline.com/ with the set cookies, I get to this page.

[Image Removed]

However, entering this URL into my web browser redirects me to my Horde server under horde01.domain.com/signin-oidc with the following message:

{ "time": "2025-04-24T13:55:23", "level": "Error", "message": "Unhandled exception: An error was encountered while handling the remote login.", "format": "Unhandled exception: {Message}", "properties": { "Message": "An error was encountered while handling the remote login." }, "exception": { "message": "An error was encountered while handling the remote login.", "trace": " at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler1.HandleRequestAsync()\r\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\r\n at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.\u003CInvoke\u003Eg__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)",
“innerException”: {
“message”: “Correlation failed.”,
“trace”: “”,
“innerExceptions”:
},
“innerExceptions”:
}
}`

I just tried it again in a fresh browser session.

Get artifacts gives me 401, but when I copy the location it tells me to login, it does actually end up logging me in and shows me the correct artifacts.

Could the issue in this case be to do with Horde not sending by a proper redirect request?

I attempted to make a change to UGS so it uses a clean HTTP Client and handles the initial redirection to Microsoft for me, but it still fails to continue the auth flow after the Microsoft page.

Hey there Liam,

I’ve corresponded with the SME for auth.

  1. I would expect UGS to resolve a token through OIDC first. Is that even happening?
  2. Are URLs being mixed http:// and https:// for URLs? Both in config for Unreal tools and redirect URLs configured in the Azure OIDC app?
  3. Are the certs self-signed or proper certs?
  4. Turning on OIDC debug logging on the server would be helpful, and see if there’s anything useful logged.

Julian

  1. Not 100% sure. It does look like something is happening but the token it receives and thinks is its Horde token is very small and is not the same as the token received when logging into Horde the normal way. It’s for this reason why I decided to try it out with its own HTTP client, but doesn’t seem to have helped.
  2. Will look again but I didn’t notice anything with http://
  3. Our Horde server is self-signed with our company’s CA and is stored in our computers.
  4. Thanks. Just turned on OIDC debug now.

Hi Liam,

Thanks. Please update us with the logs with OIDC being enabled.

Julian