(Unofficial and temporary) Rust library that enables you to acquire security token from Azure Active Directory.
``` let tenantid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; let clientid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"; let certlocation = "abcdefghijklmnopqrstuvw.xyz"; let certpassword = "***"; let resource = "https://resource.blah.com";
// Create credentials let creds = adalt::Credentials::Pkcs12 { path: String::from(certlocation), password: String::from(certpassword), x5c:true };
// create the session let mut ctx = adalt::Context::new(tenantid, clientid, resource, creds);
// token can be acquired via the future let token = ctx.get_token().await?; ```
Library uses 1. reqwest for the calls to Active Directory 2. openssl for reading certificates 3. serde for creating jwt 4. uuid