Share via


IWebAuthenticationCoreManagerInterop 介面 (webauthenticationcoremanagerinterop.h)

為 Win32 應用程式提供 WebAuthenticationCoreManager 的特定功能存取權,但只能供 UWP 應用程式使用。

繼承

IWebAuthenticationCoreManagerInterop介面繼承自 IInspectable 介面。

方法

IWebAuthenticationCoreManagerInterop介面具有這些方法。

 
IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync

以非同步方式向 Web 帳戶提供者要求權杖。 如有必要,系統會提示使用者輸入其認證。 (IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync)
IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync

以非同步方式向 Web 帳戶提供者要求權杖。 如有必要,系統會提示使用者輸入其認證。 (IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync)

備註

此介面是由 WebAuthenticationCoreManager 的 啟用處理站所實作。 若要取得此介面的物件,請取得啟用處理站的參考,然後在其中呼叫 IUnknown::QueryInterface

using winrt::Windows::Security::Authentication::Web::Core::WebAuthenticationCoreManager;

auto managerFactory = winrt::get_activation_factory<WebAuthenticationCoreManager>();
winrt::com_ptr<IWebAuthenticationCoreManagerInterop> managerInterop{ managerFactory.as<IWebAuthenticationCoreManagerInterop>() };

managerInterop->RequestTokenForWindowAsync(/* ... */)

規格需求

   
最低支援的用戶端 Windows 10組建 20348
最低支援的伺服器 Windows 10組建 20348
標頭 webauthenticationcoremanagerinterop.h