AuthenticationInfo.h (1078B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "AuthenticationInfo.g.h" 5 #include <winget/Authentication.h> 6 7 namespace winrt::Microsoft::Management::Deployment::implementation 8 { 9 struct AuthenticationInfo : AuthenticationInfoT<AuthenticationInfo> 10 { 11 AuthenticationInfo() = default; 12 13 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 14 void Initialize(::AppInstaller::Authentication::AuthenticationInfo authenticationInfo); 15 #endif 16 17 winrt::Microsoft::Management::Deployment::AuthenticationType AuthenticationType(); 18 winrt::Microsoft::Management::Deployment::MicrosoftEntraIdAuthenticationInfo MicrosoftEntraIdAuthenticationInfo(); 19 20 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 21 private: 22 winrt::Microsoft::Management::Deployment::AuthenticationType m_authenticationType = winrt::Microsoft::Management::Deployment::AuthenticationType::None; 23 winrt::Microsoft::Management::Deployment::MicrosoftEntraIdAuthenticationInfo m_microsoftEntraIdAuthenticationInfo{ nullptr }; 24 #endif 25 }; 26 }