Maranics.AppStore.SDK.AspNetCore
1.0.0
dotnet add package Maranics.AppStore.SDK.AspNetCore --version 1.0.0
NuGet\Install-Package Maranics.AppStore.SDK.AspNetCore -Version 1.0.0
<PackageReference Include="Maranics.AppStore.SDK.AspNetCore" Version="1.0.0" />
<PackageVersion Include="Maranics.AppStore.SDK.AspNetCore" Version="1.0.0" />
<PackageReference Include="Maranics.AppStore.SDK.AspNetCore" />
paket add Maranics.AppStore.SDK.AspNetCore --version 1.0.0
#r "nuget: Maranics.AppStore.SDK.AspNetCore, 1.0.0"
#:package Maranics.AppStore.SDK.AspNetCore@1.0.0
#addin nuget:?package=Maranics.AppStore.SDK.AspNetCore&version=1.0.0
#tool nuget:?package=Maranics.AppStore.SDK.AspNetCore&version=1.0.0
Maranics.AppStore.SDK.AspNetCore
The ASP.NET Core half of Maranics.AppStore.SDK.
Only AppStore may call your notification endpoint
AppStore tells an application about changes (CORS origins, tenants, applications, restart, licence)
with GET /appStore/notifications?type=<n>. Since AppStoreService 2026-10 (MAR-4266) every such call
carries a short-lived token AppStore signs for that application and that notification. From
Maranics.AppStore.SDK 2.4.0 and this package 1.0.0 the check is one attribute on your notification controller.
using Maranics.AppStore.SDK.AspNetCore;
[Route("appStore/notifications")]
[AllowAnonymous] // keep: your own auth schemes do not know AppStore's notification token
[RequireAppStoreNotificationToken] // answers 401 unless AppStore signed this request for this app
public class AppStoreNotificationController : ControllerBase { ... }
A request is let through only when its Authorization: Bearer token
- is signed with AppStore's key (the keys published at
/.well-known/jwks; read again when a token names a key not seen yet, so a key rotation needs no restart. Concurrent requests share one re-read, and re-reads are at least ten seconds apart: a request inside that gap waits for the next one instead of being refused), - was issued by AppStore and is addressed to this application (
AppStoreSettings:ClientId), - is an AppStore notification token (
typappstore-notification+jwt; an ordinary AppStore access token is refused), - has not expired (five minutes, one minute of clock skew), and
- names the notification the request asks for. Which token is required follows from the
endpoint: on
/appStore/notificationsa trigger token naming the query'stypeand nothing else; on/appStore/notifications/internal-applicationsthe token-expiry warning's token naming the query'stype,tenantandname. AppStore only ever sends that warning to UserManagement.
Everything else gets 401 before the action runs, and the reason is logged as a Warning. AppStore reports a refused notification as an Error and does not retry it.
ConfigureAppStore(...) registers the validator the attribute needs. If your application registers
AppStoreSettings and IAppStoreOpenIdDiscoveryProvider some other way, add
services.AddAppStoreNotificationTokenValidation(). To check a token by hand, inject
IAppStoreNotificationTokenValidator.
"Tenant is not resolved" errors. With Maranics.AspNetCore.Authentication, AppStore's token is
also authenticated by the AppStore scheme, and the claims transformation then logs
"Tenant is not resolved" for every notification. Tell your tenant resolver that these requests
concern no tenant:
public bool IsTenantSpecificRequest() =>
!AppStoreNotificationEndpoint.IsNotificationRequest(_httpContextAccessor.HttpContext!.Request.Path);
This package references the ASP.NET Core shared framework (Microsoft.AspNetCore.App); the base
SDK does not, so console and worker applications can keep using it alone.
| 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
- Maranics.AppStore.SDK (>= 2.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 2,655 | 10/13/2026 |