Registered return URLs for connect
What changed
- Connect return URLs.
returnUrlonPOST /v1/users/:id/connectmust now be exactly one of the return URLs registered for your application, as card links already require. Any other URL is left out of the consent link, and the answer carriesreturnUrlIgnored: true. The person then finishes on Layout's page instead of returning to your app. - Build grants read their own orders. With a build grant,
order_statusanswers only for orders your application built, whether you pass anord_id or the order's own id. Any other id answersorder_not_found. - Return URLs into the Layout app. A return URL may not use the Layout app's own
layoutscheme. Fixed.
Why it matters
A person who approves your application in Layout only ever returns to an address you registered.
What to do
Register the https URL you pass as returnUrl under Return URLs in the console, and check your connect answers for returnUrlIgnored.
Breaking changes
Yes. An unregistered connect returnUrl no longer sends the person back to it. A build grant that read an order it did not build now gets order_not_found.