Crates.io | authku |
lib.rs | authku |
version | 0.1.4 |
source | src |
created_at | 2023-06-27 11:37:25.869247 |
updated_at | 2023-07-18 10:39:12.767166 |
description | a user-friendly client for authorization and authentication in HKU eLearning system |
homepage | https://github.com/adlsdztony/authku |
repository | https://github.com/adlsdztony/authku |
max_upload_size | |
id | 901242 |
size | 11,530 |
A rust library for authorization and authentication in HKU eLearning system, including hkuportal, moodle, library, etc.
#[tokio::main]
async fn main() {
let client = authku::Client::new();
client.login_lib("uid", "password")
.await.unwrap();
client.login_portal("uid", "password")
.await.unwrap();
client.login_moodle("uid", "password")
.await.unwrap();
}