Skip to content

Development Mode

When running in Development mode without an OIDC provider, Adsify activates a DevBypass authentication handler that grants full admin access to all endpoints.

When is DevBypass active?

Both conditions must be true:

  1. ASPNETCORE_ENVIRONMENT=Development
  2. Authentication:Authority is empty or not configured

DevBypass claims

The bypass handler issues a token with:

ClaimValue
Roleadmin
Scopesads:read, ads:write, ads:lifecycle

This means all endpoints are accessible without authentication headers.

Running locally

ASPNETCORE_ENVIRONMENT=Development dotnet run \
  --project src/Adsify.Api \
  --urls "http://localhost:5000"

Running tests

dotnet test Adsify.sln

The integration tests use their own TestAuthHandler that supports configurable roles, scopes, and plc_access claims per test.