feat: demo application

This commit is contained in:
2026-09-10 13:33:58 +02:00
parent e12694bf0a
commit 355aab7f6f
13 changed files with 1494 additions and 569 deletions
+14 -2
View File
@@ -1,3 +1,15 @@
# auth
# Demo app
Create a `.env` file containing
```env
OIDC_CLIENT_ID=<CLIENT ID>
OIDC_CLIENT_SECRET=<CLIENT SECRET>
OIDC_ISSUER=https://auth.example.org
SIGNING_SECRET=<LONG RANDOM STRING>
APP_BASE_URL=https://app.example.org
```
Wrapper on top of `openid-client`, with integration into `express.js`
You can then run the app using
```bash
tsc && node --env-file=.env dist/index.js
```
The app should be served via HTTPS on a reverse proxy.