5 releases (3 breaking)
0.4.0 | Oct 20, 2020 |
---|---|
0.3.0 | Oct 19, 2020 |
0.2.0 | Oct 9, 2020 |
0.1.1 | Oct 8, 2020 |
0.1.0 | Oct 8, 2020 |
#2 in #consent
26 downloads per month
10KB
202 lines
hydra-client-rs
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:
- Getting login request informations (
GET /oauth2/auth/requests/login
) - Accepting a login request (
PUT /oauth2/auth/requests/login/accept
) - Getting consent request informations (
GET /oauth2/auth/requests/consent
) - Accepting a consent request (
PUT /oauth2/auth/requests/consent/accept
) - Accepting a logout request (
PUT /oauth2/auth/requests/logout/accept
)
Usage
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());
...
}
Contributing
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.
Dependencies
~4.5–10MB
~179K SLoC