Skip to content

fix(migrate): normalize legacy OAuth scope - #392

Open
natalie-o-perret wants to merge 1 commit into
rest-sh:mainfrom
natalie-o-perret:fix/migrate-oauth-scope
Open

fix(migrate): normalize legacy OAuth scope#392
natalie-o-perret wants to merge 1 commit into
rest-sh:mainfrom
natalie-o-perret:fix/migrate-oauth-scope

Conversation

@natalie-o-perret

@natalie-o-perret natalie-o-perret commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • normalize the singular OAuth scope parameter accepted by v1 to v2's canonical scopes parameter during legacy config conversion
  • cover authorization-code and client-credentials profiles
  • leave non-OAuth authentication parameters unchanged

Context

Restish v1 accepted scope as an OAuth endpoint pass-through even though its documented parameter was scopes. The v2 CLI can still tolerate that key as a pass-through, but embedders reading converted profiles use the canonical scopes parameter and otherwise receive an empty scope.

When both keys exist, the singular scope value wins during conversion. This preserves v1 behavior, where endpoint pass-through parameters were applied after the value derived from scopes.

Fixes #393


Note

AI assistance: test coverage, PR description.

@natalie-o-perret

Copy link
Copy Markdown
Contributor Author

@danielgtaylor wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(migration): v1 singular OAuth scope is not normalized upon v2 migration

1 participant