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
                    
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.AspNetCore" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Maranics.AppStore.SDK.AspNetCore" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Maranics.AppStore.SDK.AspNetCore" />
                    
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.AspNetCore --version 1.0.0
                    
#r "nuget: Maranics.AppStore.SDK.AspNetCore, 1.0.0"
                    
#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.AspNetCore@1.0.0
                    
#: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.AspNetCore&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Maranics.AppStore.SDK.AspNetCore&version=1.0.0
                    
Install as a Cake Tool

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 (typ appstore-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/notifications a trigger token naming the query's type and nothing else; on /appStore/notifications/internal-applications the token-expiry warning's token naming the query's type, tenant and name. 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 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

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