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

Update token exchange and secret rotation documentation #1902

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

rachel-carvalho
Copy link
Contributor

What this PR does

This PR adds information to the Token Exchange section of the documentation about changes that turning on new_embedded_auth_strategy will have on the ShopifyApp::EnsureInstalled concern.

It also adds a new block about correctly setting up ShopifyAPI::Context when performing secret rotation.

Things to focus on

Are the additions in the best part of the documentation? Any suggestions to wording?

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.
  • Update any relevant pages in /docs, if necessary
  • For security fixes, the Disclosure Policy must be followed.

closes https://github.com/Shopify/develop-app-runtime-primitives/issues/468
part of https://github.com/Shopify/develop-app-runtime-primitives/issues/467

@rachel-carvalho rachel-carvalho requested a review from a team as a code owner August 27, 2024 15:57
Copy link
Contributor

@zzooeeyy zzooeeyy left a comment

Choose a reason for hiding this comment

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

Thanks Rachel!! ❤️

README.md Outdated
you'll need to create and configure a custom PostAuthenticateTasks class to run these tasks after the token exchange. The original
OAuth CallbackController will not be triggered anymore. See [Post Authenticate Tasks documentation](/docs/shopify_app/authentication.md#post-authenticate-tasks) for more information.
4. Enjoy a smoother and faster app installation process.
4. Make sure your `embedded_app` layout is correct. If your app has any Controllers which include `ShopifyApp::EnsureInstalled`, they will now also include `ShopifyApp::EmbeddedApp` concern. See [this concern's documentation](/docs/shopify_app/controller-concerns.md#embeddedapp) for more information.
Copy link
Contributor

@paulomarg paulomarg Aug 27, 2024

Choose a reason for hiding this comment

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

Nit: should we call out what the effects of having it would be in this case? Or do we do that in the docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The docs around EmbeddedApp detail everything it does, but I'll explicitly add that the layout file the controller will look for will change 👍

@rachel-carvalho rachel-carvalho merged commit 2952c04 into main Aug 28, 2024
8 checks passed
@rachel-carvalho rachel-carvalho deleted the update_docs branch August 28, 2024 19:20
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.

3 participants