openid-examples

Crates.ioopenid-examples
lib.rsopenid-examples
version0.1.0
sourcesrc
created_at2024-09-06 19:15:10.657813
updated_at2024-09-06 19:15:10.657813
descriptionopenid-examples demo collection.
homepagehttps://github.com/kilork/openid-examples
repositoryhttps://github.com/kilork/openid-examples
max_upload_size
id1366351
size67,822
Alexander Korolev (kilork)

documentation

README

openid-examples: collection of examples for openid crate

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}.

Legal

Dual-licensed under MIT or the UNLICENSE.

Examples

export CLIENT_ID=<your google client id here>
export CLIENT_SECRET=<your google client secret>
cargo run --example=warp

Development

git push -u origin `git branch --show-current`
Commit count: 0

cargo fmt