fix(oauth): make scopes work with auth code flow

Closes #3566458

Merge request reports

Loading