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

Set special redirection headers on 401s #1450

Merged
merged 1 commit into from
Jun 15, 2022
Merged

Conversation

paulomarg
Copy link
Contributor

@paulomarg paulomarg commented Jun 13, 2022

What this PR does

To make it easier for embedded apps to redirect to OAuth after a token expires and a request reaches the server, we set the special X-Shopify-API-Request-Failure-Reauthorize-Url header, so that the client can know when to trigger an App Bridge redirect to the login action.

Reviewer's guide to testing

This was mostly tested via unit tests, and on a new app.

Checklist

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

  • Update CHANGELOG.md if the changes would impact users

@paulomarg paulomarg merged commit 8c2d96e into main Jun 15, 2022
@paulomarg paulomarg deleted the set_redirection_headers branch June 15, 2022 15:03
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems June 20, 2022 14:03 Inactive
@hrdwdmrbl
Copy link

Where is the accompanying client code which recognizes and acts on the special header?

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