简体   繁体   English

Sfb要求输入密码窗口,在Office365租户上启用ModernAuthentication时,如何以编程方式处理它?

[英]Sfb asks for password window, when ModernAuthentication is enabled on Office365 tenant, how to handle it programatically?

I have enabled ModernAuthentication on Office365 tenant and my client is SkypeForBusiness . 我已经启用ModernAuthenticationOffice365租户和我的客户是SkypeForBusiness I am trying to programatically handle sign-in using Lync SDK . 我正在尝试以编程方式使用Lync SDK处理登录。

Earlier when ModernAuthentication was not enabled, then BeginSingIn was able to login to Sfb without any popup for password, however after enabling ModernAuthentication , it pops up a window to provide the password. 较早之前未启用ModernAuthentication时, BeginSingIn能够登录Sfb而没有弹出任何密码,但是在启用ModernAuthentication ,它将弹出一个窗口以提供密码。

Please provide me pointers as to how I can handle the new window and pass on the password programatically. 请提供有关如何处理新窗口并以编程方式传递密码的指示。 I am using C# as the language to do so. 我正在使用C#作为这样做的语言。

_lync.BeginSignIn(username, domainLogin, password, SignInCallback, null);

As per Microsoft support: 根据Microsoft支持:

Unfortunately the Modern Authentication features were not added into the Lync client SDK with consideration for the client SDK. 不幸的是,考虑到客户端SDK,现代身份验证功能并未添加到Lync客户端SDK中。 Therefore there is no programmatic integration with Modern Authentication, and having Modern Auth present will break the client SDK, particularly when the UI Suppression feature is used. 因此,没有与Modern Authentication进行程序集成,并且拥有Modern Auth将破坏客户端SDK,尤其是在使用UI Suppression功能时。

Disabling Modern Auth client side using the EnableADAL registry key can help avoid certain issues, but other items may still break when Modern Auth is present. 使用EnableADAL注册表项禁用Modern Auth客户端可以帮助避免某些问题,但是当存在Modern Auth时,其他项目仍可能会中断。 These issues were raised to the product team, however their guidance was that the Client SDK and Modern Auth are not supported together. 这些问题已向产品团队提出,但是他们的指导是不一起支持Client SDK和Modern Auth。 Their recommendation is to disable Modern Auth for any users which require integration with the Lync 2013 SDK. 他们的建议是为所有需要与Lync 2013 SDK集成的用户禁用Modern Auth。

Since the Lync 2013 SDK is outside of mainstream support at this time, no future work is planned for it, and so it is unlikely this will change. 由于Lync 2013 SDK目前不在主流支持范围内,因此没有计划将来进行任何工作,因此不太可能改变。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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