Add basic demo SPA to display claims

This commit is contained in:
Simon Bihel
2022-02-11 13:54:20 +00:00
parent 15763cd0bb
commit 0f110d70b4
11 changed files with 258 additions and 2 deletions

30
example/demo/README.md Normal file
View File

@@ -0,0 +1,30 @@
# Demo Single Page Application for the OIDC IdP
This demo's purpose is to display the claims that are shared with Relying
Parties. It is currently deployed at https://demo-oidc.login.xyz.
## Dependencies
```sh
$ cargo install trunk
$ rustup target add wasm32-unknown-unknown
```
## Development
```sh
trunk serve --open
```
## Deploy
```sh
cp wrangler_example.toml wrangler.toml
```
And fill in `account_id` and `zone_id`.
```sh
$ source .env
$ trunk build
$ wrangler publish
```