This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): Ensure a down OAuth server does not cause an
undefined
…
… error. Lots of changes under the hood: * oauth-client.js: Convert jQuery promises to rest of the world promises to ensure compatibility. * oauth-client.js: Convert server error responses to OAuthError based errors. * oauth-client.js: Non-reachable OAuth server returns a SERVICE_UNAVAILABLE error * oauth-errors.js: Add all possible oauth error codes, whether they are used or not. * service-mixin.js: Work with OAuthError's instead of raw JSON responses. fixes #1344
- Loading branch information
Showing
5 changed files
with
142 additions
and
46 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
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
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