Commit graph

18 commits

Author SHA1 Message Date
Calliope
1109927984
[ease-of-use] Display "Enter Password" on STDERR
This enables users to sequence `passbolt` commands ahead of common processors... such as:

```
passbolt list resource | fzf
passbolt get resource -j abc-123-321-cba | jq ".Password"
```

As is, displaying the prompt on STDIN means the prompt (and occasionally user response) is gobbled up by the second command in the sequence. STDERR is a common out-of-band backup for interactive prompts in many similar cases.

I am inexperienced in Golang, and am unsure how solid this is; simply queried the ideal API call.
2025-02-25 15:51:44 -05:00
Daniel Del Rio Figueira
d5e2df49db
Added support for http client configuration via command arguments 2024-11-29 10:16:33 +01:00
e0469a14b0 Use old TOTP flags if the new ones are unset 2024-03-26 11:10:08 +01:00
lenforiee
6169450ab5 challange -> challenge 2023-04-19 21:34:15 +02:00
Samuel Lorch
cbf2771935 fix Double Prompting Issue when Reading Secret Input 2022-12-30 11:12:52 +01:00
Samuel Lorch
6d5327cd95 use string instead of []byte 2022-05-30 19:50:43 +02:00
Samuel Lorch
fe7e6b2a22 fix windows build failing due to syscall 2022-05-30 19:49:02 +02:00
Samuel Lorch
440f41a2af Replace usages of term.ReadPassword with util.ReadPassword 2022-05-30 17:52:17 +02:00
Samuel Lorch
bfbc15bd0d Make util ReadPassword Public 2022-05-30 17:51:54 +02:00
Samuel Lorch
a8b14c959f use golang.org/x/term instead of depricated golang.org/x/crypto/ssh/terminal 2022-05-30 17:51:10 +02:00
Tchoupinax
df187e8a5f feat: allow password to be taken from pipe 2022-05-25 19:00:09 +02:00
Samuel Lorch
f4dedc8726 update to new import paths for repository transfer 2022-02-22 17:18:34 +01:00
Samuel Lorch
8044fbbe19 fix totp retry count, adjust newline printing 2021-11-26 09:42:36 +01:00
Samuel Lorch
97ef59ff2c add the Verify command 2021-09-22 13:09:41 +02:00
Samuel Lorch
07c02c6dba add MFA support, update deps 2021-09-22 11:28:56 +02:00
Samuel Lorch
7b553fae9f improve interactive Password Entry 2021-09-13 09:22:10 +02:00
Samuel Lorch
ad91065c71 add password prompt 2021-09-10 08:45:54 +02:00
Samuel Lorch
f952b51065 add utils 2021-09-08 10:59:17 +02:00