scrml.dev v0.7.1
Reference › Errors

W-AUTH-LOGIN-MISSING

No page matches any redirect target named by the app's auth gates.

Warning Compile-time SPEC §40.1.1 (normative)

What it means

This is the whole-app counterpart to I-AUTH-REDIRECT-UNRESOLVED. That code fires per gate at info when one specific redirect is unresolved; this one fires at warning when none of the targets any gate names exists — meaning there is no login page at all and every failed auth check will 302 into a 404. The severity difference reflects that: one broken redirect is probably a typo, zero working redirects is a missing feature.

Minimal reproducer

This is the exact source compiled against the linked compiler and verified to produce W-AUTH-LOGIN-MISSING.

app.scrml

<program title="p" auth="required">
    <outlet/>
</>

pages/index.scrml

<page>
    type Role:enum = { Admin, Member }
    <auth role="Admin" redirect="/login">
        <p>admin</p>
    </>
</>

How to fix

  1. Scaffold a login page. scrml generate auth writes a working pages/login.scrml.
  2. Point the gates at an existing page. If a login page exists under a different path, correct the redirect targets.

Related

Specification

Normative text: §40.1.1, §52.13, §34. Spec lives at compiler/SPEC.md .

← Reference