Protected Subdomain Service
This page is served from service.example.com and guarded by FlashBoard via Nginx auth_request. It is also shown in an iframe when you open this site from the FlashBoard dashboard at example.com.
What you are seeing
You only see this page if you are logged into FlashBoard and your account has access to this site.
- Otherwise Nginx redirects you to the FlashBoard login page (HTTP
401) - Or shows a forbidden page if your account lacks access (HTTP
403)
How it works
- Every request to this subdomain triggers an internal subrequest to
/auth/verify/<site_id> 204— session valid and access granted401— no valid session (redirect to login)403— valid session, but no access to the site- FlashBoard sets
FLSHBD_COOKIE_DOMAIN=.example.comso the session cookie is shared across subdomains
Try it out
- Open this page in a private window or log out of FlashBoard
- Reload
service.example.com— you should be sent to the login page - Log back in and reload again — this page appears once more