Skip to content

Conversation

@AndyTitu
Copy link
Contributor

@AndyTitu AndyTitu commented Sep 8, 2025

Summary

This MR adds logic for handling invoking requests directly though the desktop app, for leveraging the desktop app prompt authentication model for desktop integrations built on top of the SDK.

Thought Process

A new core implementation was added to load a shared lib from the Desktop app bundle used to make IPC calls to the desktop app server. To do that we first attempt for find the path of the desktop app from well known locations.

The client builder api is enriched with an option to specify whether you want a specific client to authenticate via auth prompts.

NOTE: Internal op-codegen will need changes as well since code generated files were modified. But I'm leaving that for after the api is stabilised

How to Test

This can be tested only using an internal desktop app build that spawns an IPC server.

@WAUthethird
Copy link

Am I right in assuming that this could eliminate the need for a service account token if being run on a desktop PC? That's been the one thing that's held me back from using this in a personal project, since I want to run it on multiple computers capable of running the 1Password desktop app, and token sync is a bit of a headache.

matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 3.9 will reach EOL 30th of October anyway: https://devguide.python.org/versions/

@WAUthethird WAUthethird mentioned this pull request Oct 8, 2025
@AndyTitu AndyTitu merged commit 791cd1e into sdks-for-desktop-integrations Oct 13, 2025
18 checks passed
@AndyTitu AndyTitu deleted the andi/sdk-desktop-integrations branch October 13, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants