-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix(auth): fix noninteractive grant creation #2003
Conversation
✅ Deploy Preview for brilliant-pasca-3e80ec canceled.
|
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.
LGTM. You need to run pnpm format
. One question I have:
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.
Would it be worth adding a test scenario where we provide all three accesses?
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.
That sounds like a good idea, will add.
54b6d7f
Changes proposed in this pull request
canSkipInteraction
as a utility function.canSkipInteraction
in the Grant service so itscreate
function can properly create a noninteractive grant.Context
Fixes #1968.
Grant creation was handling noninteractive grant creation by checking if there is an
interact
property in the grant request. But that property may be present in a request whose requested access does not necessitate interaction.Checklist
fixes #number