Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
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>