Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Conversation

@StanleyGoldman
Copy link
Contributor

@StanleyGoldman StanleyGoldman commented Mar 27, 2018

DO NOT MERGE: This is part of #663

Fixes #651

  • Logic in NeedsLoad was incorrect
    • It needs to expect that Credential may be null from the LoadOrCreateMethod
    • The !string.IsNullOrEmpty(...) is incorrect, it needs load if the string IS null or empty.
  • ValidateKeychain does not get enough information to perform it's job.
    • It only throws an error if the token is null, but it should also throw an error if they keychain adapter's username does not match what is expected
    • LoadKeychainInternal is the only method called by ValidateKeychain and has access to the IKeychainAdapter in question
      • Until some refactoring can be implemented, I'm going to perform the check in LoadKeychainInternal

Credential might be null and we should be loading if there is no token
- LoadKeychainInternal is only called from ValidateKeychain
- ValidateKeychain should throw a TokenUsernameMismatchException if it
can see the user does not match
@shana shana merged commit 6ac6be4 into master Apr 5, 2018
@StanleyGoldman StanleyGoldman deleted the fixes/windows-creditals-missing branch April 5, 2018 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants