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
<PackageReference Include="Maranics.AppStore.SDK" Version="2.5.1" />
<PackageVersion Include="Maranics.AppStore.SDK" Version="2.5.1" />
<PackageReference Include="Maranics.AppStore.SDK" />
paket add Maranics.AppStore.SDK --version 2.5.1
#r "nuget: Maranics.AppStore.SDK, 2.5.1"
#:package Maranics.AppStore.SDK@2.5.1
#addin nuget:?package=Maranics.AppStore.SDK&version=2.5.1
#tool nuget:?package=Maranics.AppStore.SDK&version=2.5.1
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 throwsInternalApplicationEnvelopeExceptionfor 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 | Versions 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. |
-
net10.0
- Microsoft.AspNetCore.Cors (>= 2.3.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.0)
- Microsoft.Extensions.Configuration (>= 10.0.3)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.3)
- Microsoft.Extensions.DependencyInjection (>= 10.0.3)
- Microsoft.Extensions.Http (>= 10.0.3)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.3)
- Microsoft.IdentityModel.Tokens (>= 8.16.0)
- NetBox (>= 2.5.3)
- Newtonsoft.Json (>= 13.0.3)
- Serilog (>= 4.3.0)
- System.IdentityModel.Tokens.Jwt (>= 8.16.0)
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 |