Maranics.AppStore.SDK 2.5.1

dotnet add package Maranics.AppStore.SDK --version 2.5.1
                    
NuGet\Install-Package Maranics.AppStore.SDK -Version 2.5.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Maranics.AppStore.SDK" Version="2.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Maranics.AppStore.SDK" Version="2.5.1" />
                    
Directory.Packages.props
<PackageReference Include="Maranics.AppStore.SDK" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Maranics.AppStore.SDK --version 2.5.1
                    
#r "nuget: Maranics.AppStore.SDK, 2.5.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Maranics.AppStore.SDK@2.5.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Maranics.AppStore.SDK&version=2.5.1
                    
Install as a Cake Addin
#tool nuget:?package=Maranics.AppStore.SDK&version=2.5.1
                    
Install as a Cake Tool

Maranics.AppStore.SDK

This SDK offers methods to communicate with the app store and validate API requests.

Demo | Documentation | Nuget Feed | Git Repository

Checking AppStore's notification token

AppStore signs every notification it sends to an application (MAR-4266). From 2.4.0 this SDK can check that token: IAppStoreNotificationTokenValidator, registered by ConfigureAppStore(...) (or services.AddAppStoreNotificationTokenValidation()). ASP.NET Core applications normally use it through the one-line attribute in Maranics.AppStore.SDK.AspNetCore; see that package's README. This package itself does not need the ASP.NET Core runtime.

The MXE envelope for internal-application secrets and tokens

From 2.5.0 this SDK holds Security.InternalApplicationEnvelope (MAR-4071): the format in which an internal application's client secret and access token are encrypted to AppStore's secret-encryption key. AES-256-GCM over the value, with a fresh 256-bit key wrapped by RSA-OAEP-SHA256; the key id sits in the authenticated header, and each value is bound to its tenant, its field (client-secret / access-token) and its client id. The byte layout is documented on the class.

  • IsEnvelope(value) tells the envelope from the older RSA PKCS#1 v1.5 chunks; KeyIdOf(value) reads its key id.
  • Open(keyByKid, tenant, purpose, clientId, bytes) chooses the key by the header's key id alone and throws InternalApplicationEnvelopeException for anything it cannot open. A value that is an envelope is never retried as the older format.
  • Seal(...) writes one. It is there for the release that switches the writers on after the activation period; the release that ships the readers does not call it.

The known-answer vectors are Maranics.AppStore.Tests/Security/Vectors/mxe-v1.json in AppStoreService, generated with an independent implementation by generate_mxe_v1.py next to it. Consumers that read the envelope run the same file.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Maranics.AppStore.SDK:

Package Downloads
Maranics.AspNetCore.Authentication

Shared authentication logic for Maranics projects

Maranics.AppStore.SDK.AspNetCore

Maranics App Store SDK for ASP.NET Core: require AppStore's signed token on an application's notification endpoint

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.1 655 11/5/2026
2.5.0 407 10/26/2026
2.4.0 2,397 10/13/2026
2.3.0 771 10/8/2026
2.2.0 1,529 10/7/2026
2.0.0 16,564 4/11/2025
2.0.0-dev2121212 247 4/11/2025
2.0.0-dev21 264 4/11/2025
2.0.0-dev1 259 4/11/2025
1.2.3 1,827 1/2/2025
1.2.3-dev2 229 12/18/2024
1.2.3-dev1 219 12/18/2024
1.2.2 6,455 2/19/2024
1.2.1 5,997 5/18/2023
1.2.0 767 5/8/2023
1.1.29 1,413 3/23/2023
1.1.28 862 3/23/2023
1.1.27 5,823 1/9/2023
1.1.26 1,827 11/14/2022
1.1.25 1,027 11/9/2022
Loading failed