This repository was archived by the owner on May 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 530
Authentication v2 #100
Merged
Merged
Authentication v2 #100
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d48be2d
Login with Authorization header instead of cookies
48b99d9
Round trip to server to validate access keys on login/registration
2d307e4
Remove SDK logout() command as the server no longer maintains sessions
25db3c4
Remove 'access token' concept from SDK, and refactoring
ff3317a
Remove 'login' concept from sdk
ebe8d1c
Fix bug with parsing access token
9d9ee4a
Tidy promise rejection pattern
2ec497c
Refactoring. Also check for whether we're already logged in before re…
ac90734
Remove global 'connectionInfo' object
70080f6
Remove publicly exposed properties from the SDK
c9f7383
Supply default user-agent in SDK
4635095
Send desired API version using 'Accept' header
062d0f8
Tidy up error handling mechanism
2507efb
Tidying
b4bf500
Fix unit tests
e1cad8e
Trim trailing whitespace
aa28dd6
Tidy up SDK variable names to avoid confusion
4e3d713
Code tidying based on feedback
444d458
SDK - Move account-manager.ts into the root directory
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could remove this since AccountManager sets this value by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sets the user-agent to be
code-push-cli/<CLI-version>, whereas the default SDK user agent iscode-push/<SDK-version>. I think it's useful to distinguish the CLI as a distinct user agent, especially when the SDK will be consumed externally. But, I can also see the simplicity benefit of having user-agent strings being defined only by the SDK version, so feel free to discuss if you think that should be the case!