简体   繁体   中英

Azure Active Directory authentication in Rust

Does anyone have experience with Microsoft's Azure Active Directory authentication in Rust? I've built a service at work that has LDAP authentication support, but we now need to deploy said application at a client that doesn't use LDAP. They've advised us to look at Active Directory Federated Services and Azure Active Directory.

I've been researching, and it seems like Microsoft mainly provides an Active Directory Authentication Library (ADAL) for popular languages/frameworks, with no barebones documentation that I can find.

Does anyone know a resource/online documentation that I could follow? I'm looking for some generic REST API that I could implement with request or hyper .

Actually sure, you can refer to the offical document Azure REST API Reference to know how to register a client application with Azure AD and to authenticate for calling a REST API in Rust with request or hyper . I think it's your real want.

Otherwise, Python is a good embedded scripting language for Rust. Uf you can use ADAL for Python to get access token via authentication, I think a good workaround is to use some cargo modules like PyO3/pyo3 or dgrunwald/rust-cpython to call a Python script for authenticating with AAD from Rust code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM