4 releases

0.1.3 Oct 31, 2023
0.1.2 Oct 31, 2023
0.1.1 Oct 24, 2023
0.1.0 Oct 24, 2023

#567 in Authentication

MIT/Apache

11KB
201 lines

Cabbage

Wrapper around the Koala API for Rust.

Implemented APIs

  • OAuth2

Usage

To use this library, you need to register your application in Koala as an OAuth2 client. After that, you can start using the library.

async fn main() {
    let client = KoalaApi::new("https://koala.svsticky.nl".to_string()).unwrap();    
    
    // For example, the user logged in to your application
    let oauth_api = client.oauth_api(ClientConfig::new("my_client_id", "my_client_secret", "https://myapp.svsticky.nl/login"));
    
    let tokens = oauth_api.exchange_login_code(logincode).await.unwrap();
}

License

MIT or Apache-2.0, at your option

Dependencies

~4–15MB
~227K SLoC