google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 291 forks source link

POC: Provide a redirect URL for OAuth errors #9298

Open techanvil opened 2 months ago

techanvil commented 2 months ago

Summary

Add PoC support for an error redirect URL for OAuth errors.

This allows the default behaviour which is to redirect to the dashboard or splash screen to be overridden, e.g. to allow the user to return to the Settings screen on an OAuth error.

Note that the error redirect URL is not supported for the initial site setup as it's not needed there, it's only available for subsequent OAuth connections e.g. to provide additional scopes.

Relates to issue #8179.

Relevant technical choices

PR Author Checklist


Do not alter or remove anything below. The following sections will be managed by moderators only.

Code Reviewer Checklist

Merge Reviewer Checklist