Udap.Server 0.0.4-preview001

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-preview001
                    
NuGet\Install-Package Udap.Server -Version 0.0.4-preview001
                    
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-preview001" />
                    
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-preview001" />
                    
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-preview001
                    
#r "nuget: Udap.Server, 0.0.4-preview001"
                    
#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-preview001
                    
#: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-preview001&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Udap.Server&version=0.0.4-preview001&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 171 10/13/2025
0.5.15 172 10/12/2025
0.5.14 94 10/10/2025
0.5.13 105 10/10/2025
0.5.12 109 10/10/2025
0.5.11 112 10/10/2025
0.5.10 179 9/14/2025
0.5.9 179 8/19/2025
0.5.8 173 8/18/2025
0.5.7 189 8/8/2025
0.5.5 174 7/15/2025
0.5.4 170 7/14/2025
0.5.3 127 7/11/2025
0.5.2 177 7/10/2025
0.5.1 161 7/9/2025
0.5.0 168 7/6/2025
0.4.12 113 7/5/2025
0.4.11 275 6/13/2025
0.4.10 321 6/12/2025
0.4.9 340 6/12/2025
0.4.8 178 6/3/2025
0.4.7 250 4/18/2025
0.4.6 384 3/17/2025
0.4.5 495 3/4/2025
0.4.4 252 1/15/2025
0.4.3 191 1/14/2025
0.4.2 184 1/14/2025
0.4.1 319 1/13/2025
0.4.0 212 12/14/2024
0.3.96 216 11/6/2024
0.3.95 191 11/2/2024
0.3.94 180 10/31/2024
0.3.93 363 10/13/2024
0.3.92 144 10/13/2024
0.3.91 177 10/10/2024
0.3.89 171 10/10/2024
0.3.87 154 10/5/2024
0.3.86 163 10/5/2024
0.3.85 145 10/4/2024
0.3.84 155 10/3/2024
0.3.83 163 10/3/2024
0.3.82 209 9/20/2024
0.3.81 162 9/19/2024
0.3.80 168 9/19/2024
0.3.79 178 9/19/2024
0.3.78 146 9/19/2024
0.3.77 167 9/17/2024
0.3.76 181 9/17/2024
0.3.75 173 9/12/2024
0.3.74 174 9/12/2024
0.3.73 190 9/10/2024
0.3.72 189 9/7/2024
0.3.71 189 9/5/2024
0.3.70 181 9/5/2024
0.3.69 197 9/5/2024
0.3.68 176 9/4/2024
0.3.67 156 9/4/2024
0.3.66 169 9/4/2024
0.3.65 155 9/4/2024
0.3.64 157 9/2/2024
0.3.63 185 8/31/2024
0.3.62 171 8/29/2024
0.3.61 190 8/28/2024
0.3.60 131 8/2/2024
0.3.59 140 8/1/2024
0.3.58 162 8/1/2024
0.3.57 185 7/19/2024
0.3.56 150 7/19/2024
0.3.54 155 7/18/2024
0.3.53 161 7/15/2024
0.3.52 163 7/15/2024
0.3.51 175 7/12/2024
0.3.50 178 7/1/2024
0.3.49 157 7/1/2024
0.3.48 201 5/22/2024
0.3.47 200 5/15/2024
0.3.46 164 5/14/2024
0.3.45 192 5/12/2024
0.3.44 173 5/12/2024
0.3.43 208 5/12/2024
0.3.42 191 5/12/2024
0.3.41 216 5/6/2024
0.3.40 217 5/4/2024
0.3.39 133 5/1/2024
0.3.38 170 4/30/2024
0.3.37 190 4/11/2024
0.3.36 192 4/10/2024
0.3.35 196 4/9/2024
0.3.34 168 4/8/2024
0.3.33 183 4/7/2024
0.3.32 192 4/5/2024
0.3.31 185 4/4/2024
0.3.30 175 4/4/2024
0.3.29 194 4/3/2024
0.3.28 140 4/3/2024
0.3.27 179 4/2/2024
0.3.26 170 4/2/2024
0.3.25 191 4/2/2024
0.3.24 216 3/24/2024
0.3.22 227 3/6/2024
0.3.21 206 3/6/2024
0.3.20 177 3/5/2024
0.3.19 200 3/2/2024
0.3.18 222 3/2/2024
0.3.13 190 3/1/2024
0.3.12 188 2/24/2024
0.3.10 185 2/14/2024
0.3.8 212 2/11/2024
0.3.7 172 2/11/2024
0.3.6 172 2/10/2024
0.3.5 189 2/10/2024
0.3.4 172 2/10/2024
0.3.2 185 2/10/2024
0.3.0 203 1/31/2024
0.2.21 289 10/24/2023
0.2.20 172 10/23/2023
0.2.19 193 10/20/2023
0.2.18 196 10/11/2023
0.2.17 191 10/5/2023
0.2.16 170 9/21/2023
0.2.15 181 9/21/2023
0.2.14 206 9/20/2023
0.2.13 194 9/20/2023
0.2.12 155 9/20/2023
0.2.11 184 9/19/2023
0.2.10 224 9/13/2023
0.2.9 306 8/26/2023
0.2.8 230 8/18/2023
0.2.7 212 8/15/2023
0.2.6 229 8/12/2023
0.2.5 246 8/11/2023
0.2.4 232 8/10/2023
0.2.3 228 8/2/2023
0.2.2 225 8/1/2023
0.2.1 253 7/25/2023
0.2.0 244 7/16/2023
0.1.24 246 5/26/2023
0.1.23 270 5/22/2023
0.1.22 218 5/22/2023
0.1.21 221 5/21/2023
0.1.20 247 5/20/2023
0.1.17 214 5/9/2023
0.1.16 224 5/6/2023
0.1.15 221 5/4/2023
0.1.14 244 5/2/2023
0.1.12 212 5/1/2023
0.1.11 252 4/29/2023
0.1.9 253 4/29/2023
0.1.8 231 4/29/2023
0.1.7 238 4/28/2023
0.1.6 243 4/27/2023
0.1.5 233 4/27/2023
0.1.4 255 4/25/2023
0.1.3 248 4/23/2023
0.1.2 262 4/22/2023
0.1.1 248 4/22/2023
0.0.4-preview040 231 4/21/2023
0.0.4-preview039 242 4/13/2023
0.0.4-preview038 213 4/11/2023
0.0.4-preview037 242 4/7/2023
0.0.4-preview036 232 3/31/2023
0.0.4-preview035 200 3/31/2023
0.0.4-preview034 206 3/31/2023
0.0.4-preview033 234 3/30/2023
0.0.4-preview032 239 3/19/2023
0.0.4-preview029 206 3/18/2023
0.0.4-preview028 223 3/15/2023
0.0.4-preview027 234 3/13/2023
0.0.4-preview026 184 3/12/2023
0.0.4-preview025 186 3/10/2023
0.0.4-preview024 250 3/9/2023
0.0.4-preview022 206 3/9/2023
0.0.4-preview021 228 3/7/2023
0.0.4-preview020 241 3/7/2023
0.0.4-preview019 226 3/4/2023
0.0.4-preview018 240 3/4/2023
0.0.4-preview017 226 3/4/2023
0.0.4-preview016 240 3/1/2023
0.0.4-preview015 225 2/28/2023
0.0.4-preview014 236 2/23/2023
0.0.4-preview013 213 2/23/2023
0.0.4-preview012 218 2/21/2023
0.0.4-preview011 239 2/20/2023
0.0.4-preview010 215 2/20/2023
0.0.4-preview009 229 2/19/2023
0.0.4-preview008 199 2/14/2023
0.0.4-preview007 213 2/10/2023
0.0.4-preview006 207 2/8/2023
0.0.4-preview005 251 2/8/2023
0.0.4-preview004 242 2/7/2023
0.0.4-preview003 204 2/7/2023
0.0.4-preview002 260 2/7/2023
0.0.4-preview001 260 2/3/2023
0.0.4-preview000 253 2/2/2023
0.0.3-preview032 238 2/1/2023
0.0.3-preview031 228 2/1/2023
0.0.3-preview030 235 1/30/2023
0.0.3-preview029 226 1/21/2023
0.0.3-preview028 228 1/19/2023
0.0.3-preview027 227 1/18/2023
0.0.3-preview026 220 1/16/2023
0.0.3-preview025 235 1/15/2023
0.0.3-preview024 242 1/15/2023
0.0.3-preview020 245 1/15/2023
0.0.3-preview019 237 1/11/2023
0.0.3-preview018 240 1/11/2023
0.0.3-preview017 239 1/7/2023
0.0.3-preview016 253 1/7/2023
0.0.3-preview015 255 1/6/2023
0.0.3-preview014 238 1/6/2023
0.0.3-preview013 229 1/6/2023
0.0.3-preview012 230 1/6/2023
0.0.3-preview011 202 1/6/2023
0.0.3-preview010 247 1/3/2023
0.0.3-preview009 234 1/3/2023
0.0.3-preview008 246 1/2/2023
0.0.3-preview007 240 1/2/2023
0.0.3-preview006 231 1/2/2023
0.0.3-preview005 245 1/2/2023
0.0.3-preview004 203 1/1/2023
0.0.3-preview003 235 12/31/2022
0.0.3-preview002 249 12/28/2022
0.0.3-preview001 295 12/21/2022
0.0.3-preview000 253 11/29/2022
0.0.2-preview003 192 11/4/2022
0.0.2-preview002 199 11/4/2022
0.0.2-preview000 222 11/4/2022
0.0.1-preview3373625764 275 11/1/2022
0.0.1-preview002 223 11/4/2022
0.0.1-preview001 209 11/4/2022