feat: demo application
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user