mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #316] [MERGED] Update 1Password template to support the new Desktop authentication method #238
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/316
Author: @skos-ninja
Created: 12/9/2025
Status: ✅ Merged
Merged: 12/9/2025
Merged by: @gschier
Base:
main← Head:main📝 Commits (4)
4852fd9Modify the 1Password template to support the new Desktop authentication47559bdUpdate label to be clearera4d93f7Update 1Password plugin: rename fields, improve validation, and adjust UI layoutd9aec06Merge branch 'main' into main📊 Changes
1 file changed (+147 additions, -48 deletions)
View changed files
📝
plugins/template-function-1password/src/index.ts(+147 -48)📄 Description
Problem
The new 1Password template function only supported authenticating via service account tokens which in some organisations isn't allowed as access needs to be controlled on a per user basis with no static tokens.
Solution
1Password has recently added beta support for authenticating via the Desktop App (see here). This allows you to securely access items whilst having no long lived tokens in the users environments.
I've modified the existing 1Password template function to support switching between service tokens and desktop auth whilst retaining the existing functionality for any existing users that use the current service token setup today.
Additionally I've added extra error handling so that if a 1Password item, field or vault gets removed the UI will now return an error state rather than becoming blank and you having to remove the template function and re-add
Desktop Auth Preview
Please note the application in the prompt shows as iTerm due to local running. On production build this should show as Yaak
Service Token Auth Preview
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.