feat(oauth): Allow to skip grant step for selected applications #49670
+85
−59
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.
Summary
To get the skipped version, I ran:
occ config:app:set oauth2 autoGrantApplications --type array --value '["me"]'
, withme
being the name associated to my client inoc_oauth2_clients
table.TODO
Is client name the right thing to match against? (Especially, is that safe?)It should be good, clients (applications) are added and controlled by the admin.I supposeNot needed, oauth2 uses v1 onlyClientFlowLoginV2Controller
should be adapted as well? Why are there 2 of those?Why is there a step before login screen?It is now skipped as well for configured applications.Checklist