-
v0.3.0
Stablereleased this
2026-02-21 01:15:21 +00:00 | 3 commits to main since this releaseAdded
-
Cookie-based OAuth for Blazor — Standard cookie authentication that works with
<AuthorizeView>,[Authorize], and all built-in Blazor auth patternsAddAtProtoAuthentication()— registers OAuth service and optionsMapAtProtoOAuth()— maps/atproto/login,/atproto/callback,/atproto/logoutendpoints- Auto-generated loopback
client_idfor zero-config development - Configurable claims via
ClaimsFactoryoption - Default claims: DID, handle, PDS URL, auth method
-
Server-side AT Protocol access — Backend API integration via
IAtProtoClientFactoryAddAtProtoServer()— registers token store, client factory, and HTTP clientIAtProtoClientFactory— creates per-request authenticatedAtProtoClientfrom stored OAuth tokensIAtProtoTokenStore— interface for multi-user server-side token storageFileAtProtoTokenStore(default) — persistent file-based token storage with ASP.NET Core Data Protection encryptionInMemoryAtProtoTokenStore— volatile in-memory store for development/testingAddAtProtoServer(string tokenDirectory)overload for custom token storage directoryAtProtoTokenData— serializable token data including DPoP private key- Blazor OAuth service automatically stores/removes tokens when
IAtProtoTokenStoreis registered
-
Rewritten
LoginFormcomponent — Pure HTML form that submits to the login endpoint- Fully customizable labels for localization
- Optional PDS URL input for custom PDS connections
- Auto-displays OAuth callback errors
-
ServerIntegrationSample — New sample showing Blazor OAuth + backend AT Proto access
- Minimal API endpoints (
/api/profile,/api/timeline) - Blazor pages using
IAtProtoClientFactorydirectly - Profile and timeline views
- Minimal API endpoints (
Fixed
- DPoP nonce handling —
AtProtoClientFactorynow passesnullDPoP nonces instead of stale stored values; the XRPC client's retry logic acquires fresh nonces on first request, preventinguse_dpop_nonce401 errors
Changed
- ATProtoNet.Blazor.csproj — Replaced individual NuGet package references with
<FrameworkReference Include="Microsoft.AspNetCore.App" /> - ATProtoNet.Server
ServiceCollectionExtensions— AddedAddAtProtoServer()for OAuth-based multi-user access; default token store changed fromInMemoryAtProtoTokenStoretoFileAtProtoTokenStore; improved docs on existingAddAtProto()andAddAtProtoScoped()methods
Removed
- BREAKING:
AddAtProtoBlazor()extension method — replaced byAddAtProtoAuthentication() - BREAKING:
AtProtoAuthStateProvider— no longer needed; standardServerAuthenticationStateProviderworks via cookies - BREAKING:
OAuthCallbackcomponent — callback is now an HTTP endpoint mapped byMapAtProtoOAuth() - BREAKING:
PdsOptionmodel — PDS selection is now a simple text input inLoginForm - BREAKING:
BlazorServiceCollectionExtensionsclass — replaced byAtProtoAuthenticationExtensions
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-