Urgent.News

What's breaking now, across thousands of outlets.

Tech

Sitecore Search API Key Authorization - How We* Tackled It

Sitecore sent out an email yesterday that was actually a "kick the can" email, regarding a mandatory API key authorization for Search and Events APIs. Originally, this was supposed to go live mid-October 2026, and now it'll be mid-December. The first email went out a month or two ago, and support offered to change a non-prod environment to enforce the rule for testing. So we went through all…

Sitecore issued an email yesterday outlining a mandatory API key authorization for Search and Events APIs. Initially scheduled for mid-October 2026, the implementation has been moved to mid-December. The email prompted support to configure a non-production environment to test the rule enforcement. Our solution addressed the issue, as the Sitecore Search widget provider requires the Search customer key and API key in the NEXT_PUBLIC realm, exposing the API key.

To mitigate this risk, we developed a new widget provider object that accepts the customer key and a generated, authorized API key instead. This approach enables us to maintain search authorization without exposing the raw API key. We collaborated with Claude Code, utilizing AI to create and test the solution in a Sitecore Search non-production environment.

The solution involves a widget provider in the shared folder application/nextjs/src/components. It utilizes a placeholder API key during initialization, which is replaced with the authorized API key when the request middleware fetches a real access token from /api/search/accessToken. This method ensures a secure and efficient implementation of the Sitecore API key authorization.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I benchmarked seven hotel price APIs on the same Rome room, and the prices were 16% apart because of tax

I run FlightPowers, a small API that reads live Booking.com rates, so I'm biased about one row of this table. I wanted to know how it holds up next to the APIs people usually compare it with, so I…

  • Seven hotel price APIs benchmarked for same Rome room
  • 16% price discrepancy found among APIs, primarily due to tax differences
  • API choice and market sourcing significantly impact final price

Nodejs Queue Publish for Offline Users: 12-Minute Live Poll Notifications

Nodejs Queue Publish for Offline Users: 12-Minute Live Poll Notifications Short answer: in a Nodejs-style service, queue the result before you publish it so offline users still get notified.

  • Queue events before publishing to ensure delivery to offline users
  • Use per-recipient inbox with idempotent fan-out for strong delivery evidence
  • Implement client acknowledgements or durable cursors for proof of notification visibility

More from Wednesday 7 October →