idunno.Bluesky.AspNet.Authentication 8.0.0

Prefix Reserved
dotnet add package idunno.Bluesky.AspNet.Authentication --version 8.0.0
                    
NuGet\Install-Package idunno.Bluesky.AspNet.Authentication -Version 8.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="idunno.Bluesky.AspNet.Authentication" Version="8.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="idunno.Bluesky.AspNet.Authentication" Version="8.0.0" />
                    
Directory.Packages.props
<PackageReference Include="idunno.Bluesky.AspNet.Authentication" />
                    
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 idunno.Bluesky.AspNet.Authentication --version 8.0.0
                    
#r "nuget: idunno.Bluesky.AspNet.Authentication, 8.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 idunno.Bluesky.AspNet.Authentication@8.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=idunno.Bluesky.AspNet.Authentication&version=8.0.0
                    
Install as a Cake Addin
#tool nuget:?package=idunno.Bluesky.AspNet.Authentication&version=8.0.0
                    
Install as a Cake Tool

idunno.Bluesky.AspNet.Authentication

About

ASP.NET Core authentication using the Bluesky social network.

Key Features

  • ASP.NET authentication using the Bluesky OAuth flow.
  • Claims transformation to read enhanced user information from their Bluesky profile.

Version History

A full version history can be found on the project's GitHub repository.

How to Use

builder.Services
    .AddAuthentication(BlueskyAuthenticationDefaults.AuthenticationScheme)
    .AddBluesky()
    .AddBlueskyAuthenticationUI();

builder.Services
    .AddBlueskyClaimsTransformer()
    .AddBlueskyAgentFactory();

OAuth client metadata

Configure BlueskyAgentOptions.OAuthOptions with the site's public HTTPS metadata URL as ClientId and its HTTPS callback as ReturnUri. Register builder.Services.AddBlueskyOAuthClientMetadata() and call app.UseBlueskyOAuthClientMetadata() before authentication, authorization and static files to publish a generated web-client metadata document at that URL. Optional OAuthOptions.ClientName, ClientUri, TosUri and PolicyUri configure the client name, homepage, terms and privacy URLs through the existing agent configuration section. An optional registration delegate configures the logo URL and AdditionalScopes to advertise scopes the application might request later, without changing its initial login scopes. Configured scopes and permission sets are included automatically.

The metadata is validated at pipeline configuration time. Localhost development IDs use authorization-server-generated virtual metadata instead; leave publication disabled for those IDs. Existing static metadata hosting remains unchanged. See the ASP.NET documentation for configuration examples and URL requirements. To generate JSON without serving it, use BlueskyOAuthClientMetadataOptions.GenerateJson(oAuthOptions).

To act as a confidential client, set OAuthOptions.ClientSigningKeyPath (for example BlueskyAgent:OAuthOptions:ClientSigningKeyPath in configuration) to the path of an ES256 private key file. The key is loaded into OAuthOptions.ClientSigningKey when the agent options are built. The metadata then publishes the public key in jwks with private_key_jwt client authentication, and OAuth requests carry signed ES256 client assertions. To rotate the key, move the previous key's path to OAuthOptions.AdditionalClientSigningKeyPaths; previous keys are published and used only for sessions that started with them.

Documentation

Documentation is available, including API references.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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 (5)

Showing the top 5 NuGet packages that depend on idunno.Bluesky.AspNet.Authentication:

Package Downloads
idunno.Bluesky.AspNet.Authentication.SQLite

SQLite providers for idunno.Bluesky.AspNet.Authentication.

idunno.Bluesky.AspNet.Authentication.UI

idunno.Bluesky.AspNet.Authentication.UI is the default Razor Pages UI for Bluesky authentication.

idunno.Bluesky.AspNet.Authentication.MySQL

MySQL providers for idunno.Bluesky.AspNet.Authentication.

idunno.Bluesky.AspNet.Authentication.Redis

Redis providers for idunno.Bluesky.AspNet.Authentication.

idunno.Bluesky.AspNet.Authentication.PostgreSQL

PostgreSQL providers for idunno.Bluesky.AspNet.Authentication.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
8.0.0 71 10/16/2026
7.0.1 171 9/27/2026
7.0.0 171 9/25/2026