You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: Building a Backstage plugin for interacting with 1Password via Scaffolding actions.
What happened?
There is no way to set the username or password fields when creating a new Item. Attempting to include a field to set the password results in a similar field with the same name (but not the actual password field) being made, or it being completely ignored. In both cases the password remains blank. This is with the ItemBuilder and by manually creating an object with the necessary details (see below).
This appears to be the case for all "special" fields in across all Items, but I'm specifically using the "Login" item for my use-case.
What did you expect to happen?
I expect to be able to set the password (and any other fields) at creation time, as well as being able to effectively update these.
Steps to reproduce
Create an item using the ItemBuilder as described in the documentation.
Try to use ItemBuilder.addField() to add fields for Password, Username, etc.
There is no option to set the password, username, or notesPlain - adding fields with similar labels/configurations are treated as separate fields with similar labels.
Use ItemBuilder to build Item without any fields. Instead, manually create each FullItemAllOfFields and add it the built FullItem object (including a password field, as seen below).
Use op.createItem() with the newly built Item with manual fields.
New item is created in 1Password, but the password field that was manually put in is completely ignored. New item has everything except the password field, which is blank in 1Password.
Notes & Logs
Example Input
This is what is sent to the op.createItem() function.
Your environment
SDK Version: 1.4.0
Connect Server Version: 1.7.2
OS: Ubuntu 22.04.3 LTS (Jammy Jellyfish) (WSL2)
Node Version: 18.18.2
Context: Building a Backstage plugin for interacting with 1Password via Scaffolding actions.
What happened?
There is no way to set the
username
orpassword
fields when creating a new Item. Attempting to include a field to set thepassword
results in a similar field with the same name (but not the actualpassword
field) being made, or it being completely ignored. In both cases the password remains blank. This is with theItemBuilder
and by manually creating an object with the necessary details (see below).This appears to be the case for all "special" fields in across all Items, but I'm specifically using the "Login" item for my use-case.
What did you expect to happen?
I expect to be able to set the
password
(and any other fields) at creation time, as well as being able to effectively update these.Steps to reproduce
ItemBuilder
as described in the documentation.ItemBuilder.addField()
to add fields for Password, Username, etc.password
,username
, ornotesPlain
- adding fields with similar labels/configurations are treated as separate fields with similar labels.ItemBuilder
to build Item without any fields. Instead, manually create eachFullItemAllOfFields
and add it the builtFullItem
object (including apassword
field, as seen below).op.createItem()
with the newly built Item with manual fields.password
field that was manually put in is completely ignored. New item has everything except thepassword
field, which is blank in 1Password.Notes & Logs
Example Input
This is what is sent to the
op.createItem()
function.Output
This is the
FullItem
response from theop.createItem()
.Thanks, and appreciate any other guidance on this as well! 😸
The text was updated successfully, but these errors were encountered: