Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11933

[windows] uap: not added on plugin add

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-windows
    • None

    Description

      cordova create test
      cd test
      cordova platform add https://github.com/apache/cordova-windows
      cordova plugin add https://github.com/AzureAD/azure-activedirectory-library-for-cordova
      cordova plugin add plugins\cordova-plugin-ms-adal\src\windows\sso\
      type platforms\windows\package.windows10.appxmanifest
      

      ->

          <Capabilities>
              <Capability Name="internetClient" />
              <Capability Name="enterpriseAuthentication" />
              <Capability Name="privateNetworkClientServer" />
              <Capability Name="sharedUserCertificates" />
          </Capabilities>
      

      cordova prepare

      type platforms\windows\package.windows10.appxmanifest
      
          <Capabilities>
              <Capability Name="internetClient" />
              <uap:Capability Name="enterpriseAuthentication" />
              <Capability Name="privateNetworkClientServer" />
              <uap:Capability Name="sharedUserCertificates" />
          </Capabilities>
      

      cordova plugin rm cordova-plugin-ms-adal-sso

      type platforms\windows\package.windows10.appxmanifest
      
          <Capabilities>
              <Capability Name="internetClient" />
              <uap:Capability Name="enterpriseAuthentication" />
              <uap:Capability Name="sharedUserCertificates" />
          </Capabilities>
      

      1. uap: prefixes not being added on plugin add
      2. cordova prepare fixes this
      3. plugin rm does not remove added capabilities as they have been changed

      cordova-plugin-ms-adal-sso plugin.xml:

          <platform name="windows">
              <js-module name="overrides" src="www/overrides.js">
                  <runs />
              </js-module>
      
              <config-file target="package.appxmanifest" parent="/Package/Capabilities" device-target="windows">
                  <Capability Name="enterpriseAuthentication" />
                  <Capability Name="privateNetworkClientServer" />
                  <Capability Name="sharedUserCertificates" />
              </config-file>
          </platform>
      

      Attachments

        Activity

          People

            Nikita Matrosov Nikita Matrosov
            daserge Sergey Shakhnazarov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: