Token authentication

Require a valid signed token on protected paths. Set an expiry appropriate to the download and test how the edge handles missing or expired credentials.

Delivering a private download
Resource
/releases/client.zip
Edge checks
Signature and expiry
Valid token
Allow the request

Authorize a request before serving a cached file

The edge checks a signed token before serving a protected path. Restrict direct access to the underlying origin as well, so requests reach that check.

Gate cache hits

Unauthorised clients are rejected at the edge, even when the object is already cached.

Paid and pre-release artefacts

Software, game and video URLs can expire or require a signature.

Still a global cache

The edge can serve a valid request from cache after it verifies the token.

Configuration

Cloud CDN overview
  1. Identify paths that must not be public

    Downloads, media or API GETs that require a login or purchase.

  2. Enable token authentication on those paths

    Leave marketing pages public.

  3. Issue tokens from the application

    Your origin or auth service mints the URL the client will request.

  4. Set expiry to match the product

    Pre-load windows, rental windows and one-time downloads differ.

Operational outcomes

  • Private objects are not anonymously shareable
  • Authorised hits still come from cache
  • Public pages can share the distribution
  • Origin is not bothered by unauthorised GETs

Frequently asked questions

Is this the same as origin signed cookies?

Token authentication is enforced at Cloud CDN. You can still validate at origin; the edge rejects bad tokens first.

Can I use this with video?

Yes. Segment URLs can require a token so playlists are not freely redistributed.

What if a token leaks?

Short expiry limits reuse. Rotate secrets and purge if a long-lived token was exposed.

Does this replace application auth?

No. It protects CDN URLs. Account login, entitlements and billing stay in the application.