I have tried messing around with the Insomnia REST client to help see what’s going on.
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.RemoteAuthenticationHandler
1.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.