Robin Tretter 8eda67ecb2 added hot-reload as config option with default to true (#2024) 1 ano atrás
..
src 6818bbe10a Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to 1 ano atrás
.gitignore b836851d02 Add openidconnect authentication demo (#1500) 1 ano atrás
Cargo.toml ab1fab5f50 No publish demos 1 ano atrás
Dioxus.toml 8eda67ecb2 added hot-reload as config option with default to true (#2024) 1 ano atrás
README.md b836851d02 Add openidconnect authentication demo (#1500) 1 ano atrás

README.md

OpenID Connect example to show how to authenticate an user

The environment variables in .cargo/config.toml must be set in order for this example to work(if this example is just being compiled from the root workspace, the .cargo/config.toml from the root workspace must be set as stated in the Cargo book).

Once they are set, you can run dx serve

Environment variables summary


DIOXUS_FRONT_CLIENT_ID``` The openid-connect's client id

DIOXUS_FRONT_URL The url the frontend is supposed to be running on, it could be for example http://localhost:8080