Udap.Server 0.0.4-preview002

This is a prerelease version of Udap.Server.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Udap.Server --version 0.0.4-preview002
                    
NuGet\Install-Package Udap.Server -Version 0.0.4-preview002
                    
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="Udap.Server" Version="0.0.4-preview002" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Udap.Server" Version="0.0.4-preview002" />
                    
Directory.Packages.props
<PackageReference Include="Udap.Server" />
                    
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 Udap.Server --version 0.0.4-preview002
                    
#r "nuget: Udap.Server, 0.0.4-preview002"
                    
#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 Udap.Server@0.0.4-preview002
                    
#: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=Udap.Server&version=0.0.4-preview002&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Udap.Server&version=0.0.4-preview002&prerelease
                    
Install as a Cake Tool

Udap.Server

UDAP logo

📦 This package

This package is intended to be used with Duende's Identity Server. Duende must be licensed if you are using it for anything more than testing and you make more than 1 million dollars a year. I am willing to build samples using other identity providers. Keep in mind Udap.Server is meant to add auto registration only. Then it relies on Identity Server for identity rather than build a complete identity provider server. There is great value Duende provides that would take a very long time to get correct.

This package contains a few extension methods and two endpoints. The first endpoint is an UDAP metadata endpoint, implementing Duende's IEndpointHandler interface allowing /.well-known/udap to render metadata. The only thing of interest in this endpoint is the registration_endpoint which points to the next endpoint, UdapDynamicClientRegistrationEndpoint. This code is a simple endpoint called as a delegate using the dotnet minimal api technique.

Program.cs could look like this.

TODO Work to do here to demonstrate how to use.

  • Update readme
  • Instructions on creating database. dotnet run /seed from Udap.Idp.Admin
  • Need to finish loading root CAs into database
  • Add and test other DBs like SQL, PostgreSql and CockroachDB. Maybe Windows Store? 😏

using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Serilog;
using Udap.Server;
using Udap.Server.Extensions;
using Udap.Server.Registration;

namespace Udap.Idp;

internal static class HostingExtensions
{
    public static WebApplication ConfigureServices(this WebApplicationBuilder builder)
    {
        if (! int.TryParse(Environment.GetEnvironmentVariable("ASPNETCORE_HTTPS_PORT"), out int sslPort))
        {
            sslPort = 5002;
        }

        var connectionString = builder.Configuration.GetConnectionString("DefaultConnection");

        // uncomment if you want to add a UI
        builder.Services.AddRazorPages();

        var migrationsAssembly = typeof(Program).Assembly.GetName().Name;
        builder.Services.AddIdentityServer(options =>
            {
                // https://docs.duendesoftware.com/identityserver/v6/fundamentals/resources/api_scopes#authorization-based-on-scopes
                options.EmitStaticAudienceClaim = true;
            })
            .AddConfigurationStore(options =>
            {
                options.ConfigureDbContext = b => b.UseSqlite(connectionString,
                    sql => sql.MigrationsAssembly(migrationsAssembly));
            })
            .AddOperationalStore(options =>
            {
                options.ConfigureDbContext = b => b.UseSqlite(connectionString,
                    sql => sql.MigrationsAssembly(migrationsAssembly));
            })
            .AddInMemoryIdentityResources(Config.IdentityResources)
            .AddInMemoryApiScopes(Config.ApiScopes)
            .AddInMemoryClients(Config.Clients)
            //TODO remove
            .AddTestUsers(TestUsers.Users)
            .AddUdapDiscovery()
            .AddUdapServerConfiguration()
            .AddUdapConfigurationStore(options =>
            {
                options.UdapDbContext = b => b.UseSqlite(connectionString,
                    sql => sql.MigrationsAssembly(typeof(UdapDiscoveryEndpoint).Assembly.FullName));
            });

        return builder.Build();
    }
    
    public static WebApplication ConfigurePipeline(this WebApplication app)
    { 
        app.UseSerilogRequestLogging();
    
        if (app.Environment.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }

        // uncomment if you want to add a UI
        app.UseStaticFiles();
        app.UseRouting();
            
        app.UseIdentityServer();

        app.MapPost("/connect/register", async (HttpContext httpContext, [FromServices] UdapDynamicClientRegistrationEndpoint endpoint) =>
        {
            //TODO:  Tests and response codes needed...    httpContext.Response
            await endpoint.Process(httpContext);
        })
        .AllowAnonymous()
        .Produces(StatusCodes.Status201Created)
        .Produces(StatusCodes.Status401Unauthorized);

        // uncomment if you want to add a UI
        app.UseAuthorization();
        app.MapRazorPages().RequireAuthorization();

        return app;
    }
}


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

Showing the top 1 NuGet packages that depend on Udap.Server:

Package Downloads
Udap.UI

Package is a part of the UDAP reference implementation for .NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.16 210 10/13/2025
0.5.15 191 10/12/2025
0.5.14 114 10/10/2025
0.5.13 128 10/10/2025
0.5.12 126 10/10/2025
0.5.11 129 10/10/2025
0.5.10 194 9/14/2025
0.5.9 195 8/19/2025
0.5.8 189 8/18/2025
0.5.7 203 8/8/2025
0.5.5 191 7/15/2025
0.5.4 181 7/14/2025
0.5.3 140 7/11/2025
0.5.2 188 7/10/2025
0.5.1 174 7/9/2025
0.5.0 179 7/6/2025
0.4.12 124 7/5/2025
0.4.11 286 6/13/2025
0.4.10 336 6/12/2025
0.4.9 357 6/12/2025
0.4.8 186 6/3/2025
0.4.7 268 4/18/2025
0.4.6 410 3/17/2025
0.4.5 512 3/4/2025
0.4.4 270 1/15/2025
0.4.3 202 1/14/2025
0.4.2 196 1/14/2025
0.4.1 332 1/13/2025
0.4.0 226 12/14/2024
0.3.96 226 11/6/2024
0.3.95 207 11/2/2024
0.3.94 195 10/31/2024
0.3.93 378 10/13/2024
0.3.92 153 10/13/2024
0.3.91 195 10/10/2024
0.3.89 185 10/10/2024
0.3.87 164 10/5/2024
0.3.86 176 10/5/2024
0.3.85 155 10/4/2024
0.3.84 164 10/3/2024
0.3.83 176 10/3/2024
0.3.82 222 9/20/2024
0.3.81 174 9/19/2024
0.3.80 179 9/19/2024
0.3.79 187 9/19/2024
0.3.78 154 9/19/2024
0.3.77 181 9/17/2024
0.3.76 195 9/17/2024
0.3.75 185 9/12/2024
0.3.74 188 9/12/2024
0.3.73 204 9/10/2024
0.3.72 200 9/7/2024
0.3.71 199 9/5/2024
0.3.70 197 9/5/2024
0.3.69 213 9/5/2024
0.3.68 192 9/4/2024
0.3.67 173 9/4/2024
0.3.66 184 9/4/2024
0.3.65 169 9/4/2024
0.3.64 172 9/2/2024
0.3.63 199 8/31/2024
0.3.62 183 8/29/2024
0.3.61 202 8/28/2024
0.3.60 146 8/2/2024
0.3.59 151 8/1/2024
0.3.58 176 8/1/2024
0.3.57 196 7/19/2024
0.3.56 160 7/19/2024
0.3.54 162 7/18/2024
0.3.53 174 7/15/2024
0.3.52 177 7/15/2024
0.3.51 187 7/12/2024
0.3.50 186 7/1/2024
0.3.49 168 7/1/2024
0.3.48 212 5/22/2024
0.3.47 213 5/15/2024
0.3.46 172 5/14/2024
0.3.45 206 5/12/2024
0.3.44 184 5/12/2024
0.3.43 224 5/12/2024
0.3.42 206 5/12/2024
0.3.41 230 5/6/2024
0.3.40 230 5/4/2024
0.3.39 143 5/1/2024
0.3.38 182 4/30/2024
0.3.37 207 4/11/2024
0.3.36 215 4/10/2024
0.3.35 217 4/9/2024
0.3.34 177 4/8/2024
0.3.33 195 4/7/2024
0.3.32 201 4/5/2024
0.3.31 197 4/4/2024
0.3.30 186 4/4/2024
0.3.29 210 4/3/2024
0.3.28 152 4/3/2024
0.3.27 191 4/2/2024
0.3.26 183 4/2/2024
0.3.25 206 4/2/2024
0.3.24 231 3/24/2024
0.3.22 241 3/6/2024
0.3.21 222 3/6/2024
0.3.20 189 3/5/2024
0.3.19 210 3/2/2024
0.3.18 232 3/2/2024
0.3.13 200 3/1/2024
0.3.12 197 2/24/2024
0.3.10 198 2/14/2024
0.3.8 224 2/11/2024
0.3.7 182 2/11/2024
0.3.6 183 2/10/2024
0.3.5 203 2/10/2024
0.3.4 182 2/10/2024
0.3.2 198 2/10/2024
0.3.0 214 1/31/2024
0.2.21 296 10/24/2023
0.2.20 182 10/23/2023
0.2.19 206 10/20/2023
0.2.18 202 10/11/2023
0.2.17 197 10/5/2023
0.2.16 177 9/21/2023
0.2.15 189 9/21/2023
0.2.14 216 9/20/2023
0.2.13 202 9/20/2023
0.2.12 161 9/20/2023
0.2.11 198 9/19/2023
0.2.10 233 9/13/2023
0.2.9 318 8/26/2023
0.2.8 246 8/18/2023
0.2.7 218 8/15/2023
0.2.6 248 8/12/2023
0.2.5 252 8/11/2023
0.2.4 243 8/10/2023
0.2.3 238 8/2/2023
0.2.2 235 8/1/2023
0.2.1 266 7/25/2023
0.2.0 259 7/16/2023
0.1.24 261 5/26/2023
0.1.23 283 5/22/2023
0.1.22 232 5/22/2023
0.1.21 234 5/21/2023
0.1.20 261 5/20/2023
0.1.17 225 5/9/2023
0.1.16 239 5/6/2023
0.1.15 233 5/4/2023
0.1.14 260 5/2/2023
0.1.12 225 5/1/2023
0.1.11 262 4/29/2023
0.1.9 267 4/29/2023
0.1.8 242 4/29/2023
0.1.7 249 4/28/2023
0.1.6 262 4/27/2023
0.1.5 241 4/27/2023
0.1.4 275 4/25/2023
0.1.3 260 4/23/2023
0.1.2 276 4/22/2023
0.1.1 264 4/22/2023
0.0.4-preview040 251 4/21/2023
0.0.4-preview039 255 4/13/2023
0.0.4-preview038 225 4/11/2023
0.0.4-preview037 256 4/7/2023
0.0.4-preview036 251 3/31/2023
0.0.4-preview035 213 3/31/2023
0.0.4-preview034 221 3/31/2023
0.0.4-preview033 253 3/30/2023
0.0.4-preview032 253 3/19/2023
0.0.4-preview029 219 3/18/2023
0.0.4-preview028 240 3/15/2023
0.0.4-preview027 250 3/13/2023
0.0.4-preview026 199 3/12/2023
0.0.4-preview025 198 3/10/2023
0.0.4-preview024 266 3/9/2023
0.0.4-preview022 219 3/9/2023
0.0.4-preview021 244 3/7/2023
0.0.4-preview020 258 3/7/2023
0.0.4-preview019 241 3/4/2023
0.0.4-preview018 253 3/4/2023
0.0.4-preview017 242 3/4/2023
0.0.4-preview016 259 3/1/2023
0.0.4-preview015 240 2/28/2023
0.0.4-preview014 253 2/23/2023
0.0.4-preview013 228 2/23/2023
0.0.4-preview012 231 2/21/2023
0.0.4-preview011 254 2/20/2023
0.0.4-preview010 230 2/20/2023
0.0.4-preview009 246 2/19/2023
0.0.4-preview008 209 2/14/2023
0.0.4-preview007 224 2/10/2023
0.0.4-preview006 217 2/8/2023
0.0.4-preview005 271 2/8/2023
0.0.4-preview004 262 2/7/2023
0.0.4-preview003 216 2/7/2023
0.0.4-preview002 277 2/7/2023
0.0.4-preview001 277 2/3/2023
0.0.4-preview000 270 2/2/2023
0.0.3-preview032 259 2/1/2023
0.0.3-preview031 245 2/1/2023
0.0.3-preview030 252 1/30/2023
0.0.3-preview029 244 1/21/2023
0.0.3-preview028 241 1/19/2023
0.0.3-preview027 241 1/18/2023
0.0.3-preview026 232 1/16/2023
0.0.3-preview025 252 1/15/2023
0.0.3-preview024 260 1/15/2023
0.0.3-preview020 262 1/15/2023
0.0.3-preview019 251 1/11/2023
0.0.3-preview018 254 1/11/2023
0.0.3-preview017 252 1/7/2023
0.0.3-preview016 268 1/7/2023
0.0.3-preview015 272 1/6/2023
0.0.3-preview014 260 1/6/2023
0.0.3-preview013 244 1/6/2023
0.0.3-preview012 244 1/6/2023
0.0.3-preview011 219 1/6/2023
0.0.3-preview010 264 1/3/2023
0.0.3-preview009 249 1/3/2023
0.0.3-preview008 267 1/2/2023
0.0.3-preview007 253 1/2/2023
0.0.3-preview006 247 1/2/2023
0.0.3-preview005 261 1/2/2023
0.0.3-preview004 218 1/1/2023
0.0.3-preview003 255 12/31/2022
0.0.3-preview002 263 12/28/2022
0.0.3-preview001 313 12/21/2022
0.0.3-preview000 269 11/29/2022
0.0.2-preview003 211 11/4/2022
0.0.2-preview002 214 11/4/2022
0.0.2-preview000 237 11/4/2022
0.0.1-preview3373625764 296 11/1/2022
0.0.1-preview002 244 11/4/2022
0.0.1-preview001 223 11/4/2022