-
Notifications
You must be signed in to change notification settings - Fork 163
Fix: ValidateIdToken method and unit tests #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
abisalehalliprasan
merged 2 commits into
intuit:develop
from
heykevin:broken_validateIdToken
Oct 22, 2019
Merged
Fix: ValidateIdToken method and unit tests #58
abisalehalliprasan
merged 2 commits into
intuit:develop
from
heykevin:broken_validateIdToken
Oct 22, 2019
Conversation
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
1 similar comment
Thanks @heykevin for the changes. Good catch 👍 |
abisalehalliprasan
added a commit
that referenced
this pull request
Jan 2, 2020
* Coveralls Badge Fix * Coveralls Badge Fix:Final * Coveralls Badge Fix : istanbul package added * Coveralls Badge Fix + snyk added * Coveralls Badge Fix + snyk added * Snyk removed from Makefile * Snyk removed for timebeing * Add more code coverage for OAuthClient (#54) * Add better code coverage in OAuthClient * Fix: ValidateIdToken method and unit tests (#58) * Fix validateIdToken tests * Pointing README Badge to Develop * Pointing README Badge to Develop * Update Develop Coverage Badge * README.md corrections * Version Bump Co-authored-by: Oscar Rabasa <[email protected]> Co-authored-by: Kevin Tang <[email protected]>
abisalehalliprasan
added a commit
that referenced
this pull request
Apr 10, 2020
* Coveralls Badge Fix * Coveralls Badge Fix:Final * Coveralls Badge Fix : istanbul package added * Coveralls Badge Fix + snyk added * Coveralls Badge Fix + snyk added * Snyk removed from Makefile * Snyk removed for timebeing * Add more code coverage for OAuthClient (#54) * Add better code coverage in OAuthClient * Fix: ValidateIdToken method and unit tests (#58) * Fix validateIdToken tests * Pointing README Badge to Develop * Pointing README Badge to Develop * Update Develop Coverage Badge * Fix: handle not JSON content in response parsing Some intuit API as invoice download return not JSON content (PDF in this case). `makeApiCall` wasn't working with it because of mandatory response body parsing. So if the response is not JSON, we don't want to parse the body. And simply let the caller decide what to do with it. Co-authored-by: abisalehalliprasan <[email protected]> Co-authored-by: Oscar Rabasa <[email protected]> Co-authored-by: Kevin Tang <[email protected]> Co-authored-by: abisalehalliprasan <[email protected]>
abisalehalliprasan
added a commit
that referenced
this pull request
Apr 10, 2020
* Accept HTTP status codes between 199 and 300 as successes (#78) * Fix: handle not JSON content in response parsing (#59) * Coveralls Badge Fix * Coveralls Badge Fix:Final * Coveralls Badge Fix : istanbul package added * Coveralls Badge Fix + snyk added * Coveralls Badge Fix + snyk added * Snyk removed from Makefile * Snyk removed for timebeing * Add more code coverage for OAuthClient (#54) * Add better code coverage in OAuthClient * Fix: ValidateIdToken method and unit tests (#58) * Fix validateIdToken tests * Pointing README Badge to Develop * Pointing README Badge to Develop * Update Develop Coverage Badge * Fix: handle not JSON content in response parsing Some intuit API as invoice download return not JSON content (PDF in this case). `makeApiCall` wasn't working with it because of mandatory response body parsing. So if the response is not JSON, we don't want to parse the body. And simply let the caller decide what to do with it. Co-authored-by: abisalehalliprasan <[email protected]> Co-authored-by: Oscar Rabasa <[email protected]> Co-authored-by: Kevin Tang <[email protected]> Co-authored-by: abisalehalliprasan <[email protected]> * Release : 2.1.0 * Release : 2.1.0 * Release : 2.1.0 : Revert back dependencies * Release : 2.1.0 : Revert back dependencies Co-authored-by: Zina Schroeder <[email protected]> Co-authored-by: Sébastien Boulle <[email protected]> Co-authored-by: Oscar Rabasa <[email protected]> Co-authored-by: Kevin Tang <[email protected]>
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.
I was attempting to increase code coverage of the
validateIdToken
test when I realized the tests were not working as expected which then led me to realizing the method itself was not working as expected.Changes: