Crates.io | hydra-client |
lib.rs | hydra-client |
version | 0.4.0 |
source | src |
created_at | 2020-10-08 23:11:30.931514 |
updated_at | 2020-10-20 00:42:00.237517 |
description | A client implementation for the ORY Hydra API |
homepage | https://gitlab.com/Arcaik/hydra-client-rs |
repository | https://gitlab.com/Arcaik/hydra-client-rs |
max_upload_size | |
id | 297449 |
size | 27,158 |
hydra-client-rs is a client implementation for the ORY Hydra API written in Rust.
It is fairly incomplete, and mainly developed for the needs of hydra-idp-ldap.
At the moment, only a few response types and the folowing endpoints are implemented:
GET /oauth2/auth/requests/login
)PUT /oauth2/auth/requests/login/accept
)GET /oauth2/auth/requests/consent
)PUT /oauth2/auth/requests/consent/accept
)PUT /oauth2/auth/requests/logout/accept
)Using this library is pretty simple:
use hydra_client::Hydra;
use url::Url;
fn main() {
let hydra = Hydra::new(Url::parse("http://127.0.0.1:4445").unwrap());
...
}
This library is Free Software and every contributions are welcome.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.