ubuntu / aad-auth

Azure AD authentication module for Ubuntu
GNU Lesser General Public License v3.0
143 stars 22 forks source link

Feature: MFA and device enrollment using the msal Rust library #467

Open dmulder opened 4 months ago

dmulder commented 4 months ago

Is there an existing request for this feature?

Describe the feature

aad-auth doesn't support Entra ID MFA or device enrollment. I've written a library in Rust that can do this for you: https://crates.io/crates/msal https://docs.rs/msal/0.1.14 https://github.com/himmelblau-idm/microsoft-authentication-library-for-rust

Describe the ideal solution

You can at the very least get simple MFA working by calling into this library's PublicClientApplication instead of the one supplied by Microsoft. Ideally, you should implement device enrollment as well, to get the benefits of having a Primary Refresh Token (PRT) to make additional calls, etc.

Alternatives and current workarounds

No response

Ubuntu users: System information and logs

No response

Non Ubuntu users: System information and logs

Environment

Log files

Please redact/remove sensitive information:

aad-auth logs can be found in the system journal and queried with:
`journalctl | grep _aad`

Application settings

Please redact/remove sensitive information:

You can get the configuration file from /etc/aad.conf

Relevant information

No response

Double check your logs