From 1b3973064b274a4658e1c75759c291d800f82360 Mon Sep 17 00:00:00 2001 From: Paul Z Date: Thu, 2 Nov 2023 23:10:38 +0100 Subject: [PATCH] init --- .gitignore | 2 ++ Cargo.toml | 14 ++++++++++++++ README.md | 14 ++++++++++++++ src/lib.rs | 0 4 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.toml create mode 100644 README.md create mode 100644 src/lib.rs diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96ef6c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..837c3dc --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "axum-oidc" +description = "A OpenID Connect Client and Bearer Token Libary for axum" +version = "0.0.0" +edition = "2021" +authors = [ "Paul Z " ] +readme = "README.md" +repository = "https://github.com/pfz4/axum-oidc" +license = "LGPL-3.0-or-later" +keywords = [ "axum", "oidc", "openidconnect", "authentication" ] + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca293c6 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +**This crate is still under construction** + +This Library allows using [OpenID Connect](https://openid.net/developers/how-connect-works/) with [axum](https://github.com/tokio-rs/axum). It provides two modes, described below. + +# Operating Modes +## Client Mode +In Client mode, the user visits the axum server with a web browser. The user gets redirected to and authenticated with the Issuer. + +## Token Mode +In Token mode, the another system is using the access token of the user to authenticate against the axum server. + +# License +This Library is licensed under [LGPLv3](https://www.gnu.org/licenses/lgpl-3.0.en.html). + diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..e69de29