Revit 2025 connector fails to authenticate against self-hosted server 2.26.8

When starting the latest Revit connector in Revit 2022, it now lands at https://dui.speckle.systems

It seems this page is using Javascript syntax that the embedded Chromium version 65 doesn’t support.

As a result, the logon button is unclickable for either custom server or default server.

Is there a way to get the connector working in Revit 2022, because our client has provided plans to test in that version.

Speckle Revit connector version: 3.13.0
Desktop connector: 0.21.1
Revit version (hotfixed to latest): 22.1.80.32 | 20241107_1515(x64) | 2022.1.8
Embedded Chrome version: 65

Thanks,
Sean

Environment:

  • Speckle Server: v2.26.8-alpha.1226 (Docker/Podman self-hosted on http://localhost:3000)
  • Client: Revit 2025 with Speckle Connector (User-Agent: Chrome/119.0.6045.159 Autodesk.Revit/2025) - latest version 3.13.1

Issue:
After fresh database initialization, the Revit 2025 connector fails to complete authentication against a custom server. The frontend shows “Could not resolve app”.

Server logs show the connector requests AuthorizableAppMetadata for app ID sdui, but this app is not in the server_apps table.

Pre-seeded apps include sca, sdas, sdm, but NOT sdui.

Question:
Should sdui be added to the default seed data in packages/server/modules/core/helpers/defaultApps.ts? Or is there a configuration we’re missing?

Part 2:

After manually adding the sdui entry similar to sdas, the authentication proceeds to allow the app registration, however on the redirect back to the Desktop client (port 29364) the process fails and the client redirects to the public connection failure page at Connector Auth - Failed to log in | Speckle. The Desktop client log shows an error: Speckle.Sdk.SpeckleException: “We don’t have a challenge at Speckle.Desktop.Services.Accounts.AccountUtility.CreateAccountFromAccessCode”

Could the team advise how to configure the Speckle server and Revit/Desktop client to authenticate on the latest versions in a fully self-hosted environment with no reliance on speckle.systems?

Thanks!

Hey @seanw,

Unfortunately Revit 2022 web UI framework is not friendly on this. I suggest you to use ‘Legacy Sign In’ option

Hey @seanw,

Since sdas stands for our desktop service, you should be good to authenticate with Legacy Sign In option

Let me know if it does not work for you

Seems still not working. Our server side auth flow gets all the way through approving the app registration and redirecting back to the desktop client, but when the desktop service tries to validate against localhost:3000 again it fails and redirects to the speckle.systems connector fail message. Should it be hitting http://localhost:3000 without a path? or the path isnt visible and it should be hitting 3001?

desktop_log.txt (7.4 KB)

I still need to understand though how we can host in a fully isolated environment without reliance on dui.speckle.systems. It seems the connectors by default are going there first.

Thanks @oguzhan - appreciate the responses on both. Hopefully when we resolve Revit 2025 connector fails to authenticate against self-hosted server 2.26.8 - Speckle Help / Hosting Speckle - Speckle Community then it will help this topic.

As a fallback, is PAT still an option to use with connectors?

For reference, our docker compose is attached too.
speckle-local.yml (6.3 KB)

Please read our latest docs on setting up a server via docker.

Your docker file is lacking the speckle-ingress configuration needed to be able to use http://localhost for the server, frontend, and auth.

When you’ve configured this, you should find the legacy sign on works by entering the custom server url http://localhost

2 Likes

Thanks @Jedd - when include that in the docker compose or run that container directly I get

nginx: [emerg] "pcre_jit" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:1

It seems to be coming from here - speckle-server/utils/docker-compose-ingress/nginx/templates/nginx.conf.template at 68d5881179938243fc820e2d8c4e24b596f62062 · specklesystems/speckle-server · GitHub - but that line has been there for 2 years. And the nginx base container hasnt changed since last year.

I tried version 2 and version 2.26.8

dockerrun.txt (1.8 KB)

1 Like

I copied the docker files and created my own ingress container files and it seems to be working. You can close this issue or keep open if you want to track the main issue with the ingress container.

I will open a separate issue re connectors relying on speckle.systems.

I’m also confused about the sdui connections.

Is it (non-legacy) login supposed to work for self-hosted installations? We using the latest connectors, with Revit 2025, getting the ‘Could not resolve app’ message. Server is 2.27.1, sdui entry is not in server_apps in the database. I tried inserting it, but that seemed to break log in completely.

Hi, sorry to bump this but I’d like an answer and possibly a way forward.

Is it expected that users need to log in with the “Legacy Sign-in” button in the connector when logging into a self-hosted server?

When starting a new server locally, it does not seem to include the sdui server app either. Is there a way to make this work?

1 Like

Hi @nngaiup,

Self-hosted servers should use the legacy sign-in option right now. We will be aligning it, and you will need to update your server version to be able to log in with the default way.

Ok, thanks for the reply.

Through this, we discovered that the login part of the connector is running as a Speckle hosted web site which was updated for all versions of the connector. For our use case it’s a bit worrying that such a critical part of the equation can suddenly shift underneath our feet. Will the login page be moved to the connector itself in the future, or should we look into hosting it and building our own connector with this path reconfigured if it’s a pain point?

We have implemented sdui as the default Speckle application for self hosters and released it with 2.28.0

Yes, login page will be in the connector, but it should be fine for you since we give the option to set a custom server url on login.

2 Likes