Antarmuka IWebAuthenticationCoreManagerInterop (webauthenticationcoremanagerinterop.h)

Menyediakan aplikasi Win32 akses ke fungsi webAuthenticationCoreManager tertentu yang hanya tersedia untuk aplikasi UWP.

Warisan

Antarmuka IWebAuthenticationCoreManagerInterop mewarisi dari antarmuka IInspectable.

Metode

Antarmuka IWebAuthenticationCoreManagerInterop memiliki metode ini.

 
IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync

Secara asinkron meminta token dari penyedia akun web. Jika perlu, pengguna diminta untuk memasukkan kredensial mereka. (IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync)
IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync

Secara asinkron meminta token dari penyedia akun web. Jika perlu, pengguna diminta untuk memasukkan kredensial mereka. (IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync)

Keterangan

Antarmuka ini diimplementasikan oleh pabrik aktivasi WebAuthenticationCoreManager. Untuk mendapatkan objek antarmuka ini, dapatkan referensi ke pabrik aktivasi lalu panggil IUnknown::QueryInterface di dalamnya:

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(/* ... */)

Persyaratan

   
Klien minimum yang didukung Windows 10 Build 20348
Server minimum yang didukung Windows 10 Build 20348
Header webauthenticationcoremanagerinterop.h