Repository navigation
.NET SDK: finish the app bind when GetFolders is the first call (KSM-1044) - #1328
Open
stas-schaller wants to merge 1 commit into
Open
stas-schaller wants to merge 1 commit into
stas-schaller wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.NET SDK:
GetFolders()now finishes the app binding when it is the first call on a freshly bound application.Before this change,
GetFolders()stored the app key from the binding reply but did not send the follow-up request thatGetSecrets()sends, so the server did not complete the binding.Changes
Fixed
GetFolders()sends one moreget_foldersrequest without the public key, asGetSecrets2()does. A write right after a firstGetFolders()call can now succeed (KSM-1044).Reading
encryptedAppKeyfrom the binding reply was already in place.GetFolders()after the first call sends one request, as before.Testing
The test scripts a binding reply and checks the stored keys, that two requests go out with the second one lacking the public key, and that a later call sends one request.
It fails if the follow-up request is removed, and it fails if the app key is no longer stored.
It runs offline, so it does not check a
CreateSecret2call against a live server.Breaking Changes
None.
Related Issues