-
Notifications
You must be signed in to change notification settings - Fork 90
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
feat(auth): allow non-interactive grants for incoming payments #588
Merged
Merged
Changes from 5 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
52e4f55
feat(auth): allow non-interactive grants for incoming payments
sabineschaller 96767a9
test(auth): remove tests that are caught by request validator
sabineschaller c11c566
test(auth): fix typing
sabineschaller add9552
fix(auth): add not nullable field continueId to grant
sabineschaller a438f8e
fix(auth): create grant request test suite
sabineschaller 0c3f58f
fix(auth): unnecessary typecast, check for incoming payment type
sabineschaller d938fce
feat(auth): add envBool function
sabineschaller d5d1c52
fix(auth): remove another unneccessary typecast
sabineschaller bc0e41d
Merge branch 'main' into s2-no-interaction-grant
sabineschaller c9b0d17
fix(auth): remove unneccessary validation function
sabineschaller 172d0dc
chore(auth): update reference to API spec
sabineschaller dee2671
test(auth): avoid typecasting
sabineschaller aed10d4
feat(auth): check that on non-incoming-payment grant request, interac…
sabineschaller bb99546
refactor(aut): add Brandon's suggestions
sabineschaller 428cd92
feat(auth): create grant and access token within trx
sabineschaller bd2c4c9
fix(auth): deal with internal server error on grant and token creation
sabineschaller 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 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
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.
It shouldn't be necessary to generate continuation information if interaction (or further continuation) isn't necessary for a grant. The
POST /
should just return the access token without any continuation information. Continuation information could just be generated if the grant is modified in a way that requires interaction to be issued again (if we end up supporting that again).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.
I think we discussed that while you were away. We always want to be able to delete/revoke the grant and for that you need the continue token and id. Hence, it must always be present. We also already changed the spec to make it always required.