I would use "Open ID Connect" - it is not Azure specific, but a standard implemented by any decent identity provider - including Azure AD. Preferably "Open ID Connect with PKSE" to be at the highest security level.
For example using this nuget package:
GitHub - IdentityModel/IdentityModel.OidcClient: Certified C#/NetStandard OpenID Connect Client Library for native mobile/desktop Applications (RFC 8252)[
^]
Follow the link to the documentation and from there you can find samples for WPF, WinForm, Console, ...
It can be a bit tricky to get the configuration correct when you are new to the subject - and if it is wrong expect all you will get is "it did not work, try something else" error messages. So reserve a lot of time for that part - but the actual code should be very simple.