Home

Documentation

Documentation

REST API Requirements

Your resource server must accept and validate XAA-issued Bearer tokens.

Checklist

  1. Accept Authorization: Bearer <token> on all protected endpoints
  2. Validate the JWT signature against https://auth.resource.xaa.dev/jwks (RS256)
  3. Verify iss = https://auth.resource.xaa.dev
  4. Verify aud = your resource server URL, exactly as registered (the Auth Server does not normalize trailing slashes — whatever you entered in Wizard Step 1 is what lands in the aud claim)
  5. Verify exp is in the future
  6. Enforce the required scope per endpoint
  7. Expose a /health endpoint returning HTTP 200
  8. Allow CORS from the playground origins, or use Proxy Mode

JWT Middleware

CORS

When the Demo makes a direct API call from the browser, you must allow its origin on your server. If you can't add CORS headers, enable Proxy Mode in Step 4 instead. It routes the call server-to-server, bypassing the browser CORS restriction.

The origins to allow are https://xaa.dev (Resource Tester) and https://app.xaa.dev (Requesting App).

Token claims

The access token your server receives:

ClaimValue
isshttps://auth.resource.xaa.dev
audYour resource server URL, exactly as registered (no normalization — trailing slash is preserved as-is)
sub{providerName}:{userSub} (e.g. customer1:alice@example.com)
scopeSpace-separated granted scopes
app_orgProvider (tenant) name that authenticated the user
expExpiry (Unix timestamp)

The access token header uses typ: at+jwt (RFC 9068). If your JWT library enforces a specific typ, configure it to accept at+jwt.

Next step

Ready to test? Open Test Your Resource App, register your server, and run the 4-step XAA flow against it. See the Testing Guide for a detailed walkthrough.

These materials and any recommendations within are not legal, privacy, security, compliance, or business advice. These materials are intended for general informational purposes only and may not reflect the most current security, privacy, and legal developments nor all relevant issues. You are responsible for obtaining legal, security, privacy, compliance, or business advice from your own lawyer or other professional advisor and should not rely on the recommendations herein.

Presented byOkta Developer

Copyright © 2026 Okta. All rights reserved.