Skip to content
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

Process embedded parameter to optimize OAuth #1483

Merged
merged 22 commits into from
Aug 22, 2022

Conversation

mkevinosullivan
Copy link
Contributor

@mkevinosullivan mkevinosullivan commented Aug 2, 2022

What this PR does

We want to improve OAuth experience by:

  • Making it faster
  • Reducing the amount of screen flicker.

Note, this PR will require Shopify/shopify-api-ruby#1002 to be merged first, the TODO's updated accordingly, before it can be merged itself

Fixes https://github.com/Shopify/first-party-library-planning/issues/393

Reviewer's guide to testing

To be documented

Things to focus on

  1. Top-level: App installation from the app store
  2. Top-level: Token refresh scopes change (grant screen present)
  3. Top-level: Token refresh no scopes change (grant screen skipped)
  4. Iframe: Token refresh scopes change (grant screen present)
  5. Iframe:Token refresh no scopes change (grant screen skipped)

Checklist

Before submitting the PR, please consider if any of the following are needed:

  • Update CHANGELOG.md if the changes would impact users
  • Update README.md, if appropriate - not applicable
  • Update any relevant pages in /docs, if necessary
  • For security fixes, the Disclosure Policy must be followed - not applicable

@mkevinosullivan mkevinosullivan changed the title Process embedded parameter to optimize OAuth [WIP] Process embedded parameter to optimize OAuth Aug 3, 2022
@mkevinosullivan mkevinosullivan marked this pull request as ready for review August 6, 2022 19:53
@mkevinosullivan mkevinosullivan changed the title [WIP] Process embedded parameter to optimize OAuth Process embedded parameter to optimize OAuth Aug 6, 2022
Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good test coverage, mostly just nits!

app/controllers/concerns/shopify_app/require_known_shop.rb Outdated Show resolved Hide resolved
app/controllers/shopify_app/callback_controller.rb Outdated Show resolved Hide resolved
test/controllers/callback_controller_test.rb Outdated Show resolved Hide resolved
test/controllers/callback_controller_test.rb Outdated Show resolved Hide resolved
test/controllers/sessions_controller_test.rb Outdated Show resolved Hide resolved
test/controllers/sessions_controller_test.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit

test/controllers/sessions_controller_test.rb Outdated Show resolved Hide resolved
shopify_app.gemspec Outdated Show resolved Hide resolved
docs/Upgrading.md Outdated Show resolved Hide resolved
@mkevinosullivan mkevinosullivan force-pushed the kos/optimize_oauth_performance branch 2 times, most recently from d21c46e to a3b31c2 Compare August 15, 2022 19:49
@mkevinosullivan mkevinosullivan merged commit b382c12 into main Aug 22, 2022
@mkevinosullivan mkevinosullivan deleted the kos/optimize_oauth_performance branch August 22, 2022 15:03
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems August 22, 2022 15:23 Inactive
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.

None yet

3 participants