winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

MicrosoftEntraIdAuthenticationInfo.cpp (727B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "MicrosoftEntraIdAuthenticationInfo.h"
      5 #include "MicrosoftEntraIdAuthenticationInfo.g.cpp"
      6 #include <wil\cppwinrt_wrl.h>
      7 
      8 namespace winrt::Microsoft::Management::Deployment::implementation
      9 {
     10     void MicrosoftEntraIdAuthenticationInfo::Initialize(::AppInstaller::Authentication::MicrosoftEntraIdAuthenticationInfo authInfo)
     11     {
     12         m_authInfo = std::move(authInfo);
     13     }
     14     hstring MicrosoftEntraIdAuthenticationInfo::Resource()
     15     {
     16         return winrt::to_hstring(m_authInfo.Resource);
     17     }
     18     hstring MicrosoftEntraIdAuthenticationInfo::Scope()
     19     {
     20         return winrt::to_hstring(m_authInfo.Scope);
     21     }
     22 }