Develop first version #1
@ -9,6 +9,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy --all-features -- -D warnings
|
- cargo clippy --all-features -- -D warnings
|
||||||
|
- cargo clippy -- -D warnings
|
||||||
- cargo test --all-features
|
- cargo test --all-features
|
||||||
|
|
||||||
|
|
||||||
|
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -478,7 +478,7 @@ checksum = "6a987beff54b60ffa6d51982e1aa1146bc42f19bd26be28b0586f252fccf5317"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "light-openid"
|
name = "light-openid"
|
||||||
version = "0.3.0-alpha"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aes-gcm",
|
"aes-gcm",
|
||||||
"base64",
|
"base64",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "light-openid"
|
name = "light-openid"
|
||||||
version = "0.3.0-alpha"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
repository = "https://gitea.communiquons.org/pierre/light-openid"
|
repository = "https://gitea.communiquons.org/pierre/light-openid"
|
||||||
authors = ["Pierre HUBERT <pierre.git@communiquons.org>"]
|
authors = ["Pierre HUBERT <pierre.git@communiquons.org>"]
|
||||||
|
@ -47,6 +47,9 @@ fun test() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Note : In order to use `CryptoWrapper` on your own, you must add `bincode>=2.0` as one of your own dependencies. This is not required if you decide use `BasicStateManager`.
|
||||||
|
|
||||||
|
|
||||||
`BasicStateManager` is a helper that uses `CryptoWrapper` to generate and validates states for OpenID authentication:
|
`BasicStateManager` is a helper that uses `CryptoWrapper` to generate and validates states for OpenID authentication:
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
@ -56,7 +59,6 @@ let state = manager.gen_state(ip).unwrap();
|
|||||||
assert!(manager.validate_state(ip, &state).is_ok());
|
assert!(manager.validate_state(ip, &state).is_ok());
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Complete example
|
## Complete example
|
||||||
A complete example usage of this crate can be found here:
|
A complete example usage of this crate can be found here:
|
||||||
[https://gitea.communiquons.org/pierre/oidc-test-client](https://gitea.communiquons.org/pierre/oidc-test-client)
|
[https://gitea.communiquons.org/pierre/oidc-test-client](https://gitea.communiquons.org/pierre/oidc-test-client)
|
Loading…
Reference in New Issue
Block a user