Crates.io | openid-examples |
lib.rs | openid-examples |
version | 0.1.0 |
source | src |
created_at | 2024-09-06 19:15:10.657813 |
updated_at | 2024-09-06 19:15:10.657813 |
description | openid-examples demo collection. |
homepage | https://github.com/kilork/openid-examples |
repository | https://github.com/kilork/openid-examples |
max_upload_size | |
id | 1366351 |
size | 67,822 |
By default all examples work with Google OpenID Connect.
You need to define two environment variables CLIENT_ID
and CLIENT_SECRET
.
If you want to try another OpenID provider - additionally define ISSUER
environment variable.
To change the address where the app listens for connections, use the environment variable LISTEN
.
The variable REDIRECT_URL
defines the initial part of the url where we listen for connections, in general this is http://${LISTEN}
.
Dual-licensed under MIT
or the UNLICENSE.
export CLIENT_ID=<your google client id here>
export CLIENT_SECRET=<your google client secret>
cargo run --example=warp
git push -u origin `git branch --show-current`