-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Add first cut of git-credential-fdoss
Do not return (get) or delete (erase) secrets unless the attributes provided match exactly. It is possible we match a subset (if a secret is stored with a path but you try to delete it without a path, for example), so ensure we have an exact match before returning or deleting it. Change the "expectSecret" to "expectedPassword" in Delete and only compare the stored secret up to the first newline. We should not need to match on other volatile fields (expiry, refresh token). Do not require host AND path when validating "erase". That was silly. Validation for "erase" now matches the other operations.
- Loading branch information
Showing
2 changed files
with
94 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters