MicrosoftDocs / msix-docs

repository for msix content
Creative Commons Attribution 4.0 International
59 stars 114 forks source link

msixauth is largely undocumented, doesn't appear to work #354

Open insertjokehere opened 1 year ago

insertjokehere commented 1 year ago

Hi,

I'm trying to distribute a preprod version of my app to some users within my organization. App Installer Authentication Manager looks like it might fit my need - we use Azure AD, so I can authenticate users - but the documentation is very sparse about how this is supposed to work.

Can you provide any details about this feature? #250 and #269 seem to describe similar issues

I've tried creating an appinstaller file like so:

<?xml version="1.0" encoding="utf-8"?>
  <AppInstaller xmlns="http://schemas.microsoft.com/appx/appinstaller/2018"
    Uri="https://example.com/my-app.appinstaller?msixauth=aad" Version="0.0.0.0">
    <MainPackage Name="com.example" Version="0.0.0.0"
      Publisher="..."
      Uri="https://example.com/my-app.msix?msixauth=aad"
      ProcessorArchitecture="x64" />
    <UpdateSettings>
      <OnLaunch HoursBetweenUpdateChecks="8"
        UpdateBlocksActivation="false" ShowPrompt="false" />
        <AutomaticBackgroundTask />
        </UpdateSettings>
  </AppInstaller>

When I attempt to install this app installer, I can see:

  1. My laptop makes a HEAD request to the server that responds with a 401 because there is no authentication
  2. I'm prompted to log in - but it seems like I can log in with any account from any organization?
  3. Authentication succeeds, but the install fails. I can see from the server logs that my laptop has not made a follow up request