IWebAuthenticationCoreManagerInterop interface (webauthenticationcoremanagerinterop.h)

Provides Win32 apps with access to certain functions of WebAuthenticationCoreManager that are otherwise available only to UWP apps.

Inheritance

The IWebAuthenticationCoreManagerInterop interface inherits from the IInspectable interface.

Methods

The IWebAuthenticationCoreManagerInterop interface has these methods.

 
IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync

Asynchronously requests a token from a web account provider. If necessary, the user is prompted to enter their credentials. (IWebAuthenticationCoreManagerInterop::RequestTokenForWindowAsync)
IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync

Asynchronously requests a token from a web account provider. If necessary, the user is prompted to enter their credentials. (IWebAuthenticationCoreManagerInterop::RequestTokenWithWebAccountForWindowAsync)

Remarks

This interface is implemented by WebAuthenticationCoreManager's activation factory. To get an object of this interface, get a reference to the activation factory and then call IUnknown::QueryInterface on it:

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

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header webauthenticationcoremanagerinterop.h