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
According to the Secret Reference Syntax, parameters can be used to obtain specific attributes of a secret. This is necessary for resolving an OTP field to an OTP code.
In the SDK, this format is not supported. Adding ?attribute=otp to a secret reference produces an error when calling client.secrets.resolve().
Actual Behavior
This error occurs:
error resolving secret reference: secret reference has invalid format - must be "op://<vault>/<item>/[section/]field"
The error goes away when ?attribute=otp is removed from the end of the secret reference.
But then the OTP field resolves to another reference URL like otpauth://totp/<email>?secret=<secret>&issuer=<issuer>, which is not useful.
Expected Behavior
Secret references with attributes, like op://<vault>/<item>/[section/]field?attribute=<attribute>, should work the same way as they do in the 1Password CLI commands op read and op run.
SDK version
0.1.1
Additional information
No response
The text was updated successfully, but these errors were encountered:
Scenario & Reproduction Steps
According to the Secret Reference Syntax, parameters can be used to obtain specific attributes of a secret. This is necessary for resolving an OTP field to an OTP code.
In the SDK, this format is not supported. Adding
?attribute=otp
to a secret reference produces an error when callingclient.secrets.resolve()
.Actual Behavior
This error occurs:
The error goes away when
?attribute=otp
is removed from the end of the secret reference.But then the OTP field resolves to another reference URL like
otpauth://totp/<email>?secret=<secret>&issuer=<issuer>
, which is not useful.Expected Behavior
Secret references with attributes, like
op://<vault>/<item>/[section/]field?attribute=<attribute>
, should work the same way as they do in the 1Password CLI commandsop read
andop run
.SDK version
0.1.1
Additional information
No response
The text was updated successfully, but these errors were encountered: