dioxus/examples/openid_connect_demo
Tristan F. 9167cd9dec
fix most typos, add crate-ci/typos to CI (#2653)
* fix most typos, add crate-ci/typos to CI

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-07-23 17:49:33 -07:00
..
.cargo Update openid example (#2474) 2024-06-06 18:05:25 -07:00
src Update openid example (#2474) 2024-06-06 18:05:25 -07:00
.gitignore Add openidconnect authentication demo (#1500) 2023-10-20 12:43:24 -05:00
Cargo.lock Update openid example (#2474) 2024-06-06 18:05:25 -07:00
Cargo.toml Update openid example (#2474) 2024-06-06 18:05:25 -07:00
Dioxus.toml fix most typos, add crate-ci/typos to CI (#2653) 2024-07-23 17:49:33 -07:00
README.md Update openid example (#2474) 2024-06-06 18:05:25 -07:00

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.

Once they are set, you can run dx serve --platform web or dx serve --platform desktop.

Environment variables summary

  • DIOXUS_FRONT_ISSUER_URL: The openid-connect's issuer url
  • DIOXUS_FRONT_CLIENT_ID: The openid-connect's client id
  • DIOXUS_FRONT_CLIENT_SECRET: The openid-connect's client secret
  • DIOXUS_FRONT_URL: The url the frontend is supposed to be running on, it could be for example http://localhost:8080