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
Copy file name to clipboardExpand all lines: osxkeychain/osxkeychain_darwin.go
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,13 @@ import (
21
21
// when the credentials are not in the keychain.
22
22
consterrCredentialsNotFound="The specified item could not be found in the keychain."
23
23
24
+
// errCredentialsNotFound is the specific error message returned by OS X
25
+
// when environment does not allow showing dialog to unlock keychain.
26
+
consterrInteractionNotAllowed="User interaction is not allowed."
27
+
28
+
// ErrInteractionNotAllowed is returned if keychain password prompt can not be shown.
29
+
varErrInteractionNotAllowed=errors.New(`keychain cannot be accessed because the current session does not allow user interaction. The keychain may be locked; unlock it by running "security -v unlock-keychain ~/Library/Keychains/login.keychain-db" and try again`)
30
+
24
31
// Osxkeychain handles secrets using the OS X Keychain as store.
0 commit comments