Azure AD和WinForms [英] Azure AD and WinForms

查看:76
本文介绍了Azure AD和WinForms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以将winforms连接到azure活动目录吗,如果可以,我如何

解决方案

您将使用ADAL或MSAL库,具体取决于您要使用Azure AD.
请参阅此链接- https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Adal-to-Msal

然后,您可以使用样本,这些样本可以用作设置事物的模型.以下是MSAL样本的列表: https://docs.microsoft.com/zh-CN/azure/active-directory/develop/sample-v2-code
以下是ADAL示例: https://docs.microsoft.com/zh-CN/azure/active-directory/develop/sample-v1-code 

ADAL和MSAL只是nuget包,因此应该相当容易安装到应用程序中.我建议您选择一个样本,然后从那里去.

------------------------------------------------- --------------------------------------------

如果此答案有帮助,请单击标记为答案"或上投票".提供其他反馈 在您的论坛体验上,点击 解决方案

You would use either ADAL or MSAL libraries, depending on how you want to use Azure AD. 
Refer to this link -
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Adal-to-Msal

Then, you can use the samples, which can be used as models for setting things up. Here's a list for MSAL samples: https://docs.microsoft.com/en-us/azure/active-directory/develop/sample-v2-code
here are the ADAL samples: https://docs.microsoft.com/en-us/azure/active-directory/develop/sample-v1-code 

ADAL and MSAL are just nuget packages, so should be fairly easy to install into the app. I would suggest you to pick a sample and go from there.

---------------------------------------------------------------------------------------------

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here

 


这篇关于Azure AD和WinForms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆