Registered return URLs for connect

APIBreaking

What changed

  • Connect return URLs. returnUrl on POST /v1/users/:id/connect must 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 carries returnUrlIgnored: 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_status answers only for orders your application built, whether you pass an ord_ id or the order's own id. Any other id answers order_not_found.
  • Return URLs into the Layout app. A return URL may not use the Layout app's own layout scheme. 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.

All changes