Share via

How to retrieve MSA token from WinUI application to download Package Flight bundles

Diogo Costa Maranhao Rodrigues 120 Reputation points
2026-03-24T17:54:24.5066667+00:00

I need to retrieve an MSA (Microsoft Account) token from a WinUI application to download bundles that were made available through Microsoft Store Package Flight. I have a WinUI application and need to authenticate with Microsoft Account to download bundles from Package Flight using authenticated requests to access test bundles. Which API or SDK should I use to obtain the MSA token in WinUI? Is there a code example demonstrating authentication and token retrieval? Can the retrieved token be used directly to access Package Flight bundles, or is there a specific authorization process?

Windows development | WinUI
0 comments No comments

Answer accepted by question author
  1. Nancy Vo (WICLOUD CORPORATION) 2,805 Reputation points Microsoft External Staff Moderator
    2026-03-25T04:20:54.2+00:00

    Hi @Diogo Costa Maranhao Rodrigues ,

    Thanks for your question.

    An MSA token is not the correct authentication for this job, and there is no official way for a WinUI app to directly download Package Flight bundles using any token (MSA or otherwise).

    Package Flights are designed so testers just open the normal Microsoft Store app, sign in with their Microsoft account, and the Store automatically gives them the test bundle. There is no public API that lets your custom WinUI app download the actual .msixbundle files for a flight.

    The Microsoft Store submission API (the only official API that knows about Package Flights) uses a different kind of ticket called an Azure AD (Entra ID) access token, and it is only for developers managing their app in Partner Center, not for testers downloading bundles. That API also cannot download the actual bundle files, it only handles paperwork like create a new test flight.

    The recommended approach remains letting the Microsoft Store handle delivery of flighted packages after the user signs in there.

    I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.