Udap.Server 0.5.16

dotnet add package Udap.Server --version 0.5.16
                    
NuGet\Install-Package Udap.Server -Version 0.5.16
                    
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.5.16" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Udap.Server" Version="0.5.16" />
                    
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.5.16
                    
#r "nuget: Udap.Server, 0.5.16"
                    
#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.5.16
                    
#: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.5.16
                    
Install as a Cake Addin
#tool nuget:?package=Udap.Server&version=0.5.16
                    
Install as a Cake Tool

Udap.Server

UDAP logo

📦 Nuget Package: Udap.Server

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 items of interest in the metadata 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. All of this is configured by adding the AddUdapServer() extension method to the Identity Server pipeline.

Assumptions: An Identity Sever exists is backed by a relational database. Use Udap.Auth.Server as an example. I may revisit this in the future and build an in memory version but this reference implementation. For now it assumes a relational database is deployed.

Full Example

Below is a full example. Alternatively the 2023 FHIR® DevDays Tutorial is another great way to learn how to use Udap.Server.


var builder = WebApplication.CreateBuilder(args);

builder.Services.AddIdentityServer()
    .AddConfigurationStore(options =>
    {
        options.ConfigureDbContext = b => b.UseSqlite(connectionString,
            dbOpts => dbOpts.MigrationsAssembly(migrationsAssembly));
    })
    .AddOperationalStore(options =>
    {
        options.ConfigureDbContext = b => b.UseSqlite(connectionString,
            dbOpts => dbOpts.MigrationsAssembly(migrationsAssembly));

    })
    .AddResourceStore<ResourceStore>()
    .AddClientStore<ClientStore>()
    .AddTestUsers(TestUsers.Users)
    .AddUdapServer(
        options =>
        {
            var udapServerOptions = builder.Configuration.GetOption<ServerSettings>("ServerSettings");
            options.DefaultSystemScopes = udapServerOptions.DefaultSystemScopes;
            options.DefaultUserScopes = udapServerOptions.DefaultUserScopes;
            options.ForceStateParamOnAuthorizationCode = udapServerOptions.
                ForceStateParamOnAuthorizationCode;
        },
        options =>
            options.UdapDbContext = b =>
                b.UseSqlite(connectionString,
                    dbOpts =>
                        dbOpts.MigrationsAssembly(typeof(Program).Assembly.FullName)),
        baseUrl: "https://localhost:5002/connect/register"
    );

  var app = builder.Build();

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

  app.UseUdapServer();
  app.UseIdentityServer();

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

  app.Run;

Udap.Auth.Server Database Configuration

For your convenience a EF Migrations Project called UdapDb.SqlServer can deploy the database schema. Run from Visual Studio using the UdapDb profile (/properties/launchSettings.json). This project will create all the Udap tables and Duende Identity tables. It will seed data needed for running local system tests. See the SeedData.cs for details.

If you need another database such as PostgreSQL I could be motivated to create one.

Not the UdapDb.SqlServer project includes two migrations for Duende's Identity Server tables. I have not put anytime into migrating a schema. At this point my pattern is to just delete the database and re-create it. At some point I will version this and start migrating officially.

UDAP Authorization Server Examples

  • Udap.Auth.Server

  • Udap.Auth.Server Deployed

  • FHIR® is the registered trademark of HL7 and is used with the permission of HL7. Use of the FHIR trademark does not constitute endorsement of the contents of this repository by HL7.

  • UDAP® and the UDAP gear logo, ecosystem gears, and green lock designs are trademarks of UDAP.org. UDAP Draft Specifications are referenced and displayed in parts of this source code to document specification implementation.

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 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 179 10/13/2025
0.5.15 181 10/12/2025
0.5.14 103 10/10/2025
0.5.13 115 10/10/2025
0.5.12 118 10/10/2025
0.5.11 120 10/10/2025
0.5.10 183 9/14/2025
0.5.9 185 8/19/2025
0.5.8 178 8/18/2025
0.5.7 194 8/8/2025
0.5.5 179 7/15/2025
0.5.4 174 7/14/2025
0.5.3 132 7/11/2025
0.5.2 180 7/10/2025
0.5.1 165 7/9/2025
0.5.0 172 7/6/2025
0.4.12 117 7/5/2025
0.4.11 279 6/13/2025
0.4.10 328 6/12/2025
0.4.9 347 6/12/2025
0.4.8 181 6/3/2025
0.4.7 262 4/18/2025
0.4.6 395 3/17/2025
0.4.5 503 3/4/2025
0.4.4 258 1/15/2025
0.4.3 197 1/14/2025
0.4.2 187 1/14/2025
0.4.1 327 1/13/2025
0.4.0 218 12/14/2024
0.3.96 220 11/6/2024
0.3.95 199 11/2/2024
0.3.94 188 10/31/2024
0.3.93 371 10/13/2024
0.3.92 148 10/13/2024
0.3.91 187 10/10/2024
0.3.89 180 10/10/2024
0.3.87 158 10/5/2024
0.3.86 171 10/5/2024
0.3.85 149 10/4/2024
0.3.84 159 10/3/2024
0.3.83 169 10/3/2024
0.3.82 215 9/20/2024
0.3.81 165 9/19/2024
0.3.80 172 9/19/2024
0.3.79 181 9/19/2024
0.3.78 149 9/19/2024
0.3.77 175 9/17/2024
0.3.76 188 9/17/2024
0.3.75 180 9/12/2024
0.3.74 178 9/12/2024
0.3.73 196 9/10/2024
0.3.72 194 9/7/2024
0.3.71 194 9/5/2024
0.3.70 190 9/5/2024
0.3.69 207 9/5/2024
0.3.68 183 9/4/2024
0.3.67 165 9/4/2024
0.3.66 178 9/4/2024
0.3.65 161 9/4/2024
0.3.64 165 9/2/2024
0.3.63 192 8/31/2024
0.3.62 176 8/29/2024
0.3.61 195 8/28/2024
0.3.60 134 8/2/2024
0.3.59 144 8/1/2024
0.3.58 168 8/1/2024
0.3.57 190 7/19/2024
0.3.56 154 7/19/2024
0.3.54 158 7/18/2024
0.3.53 168 7/15/2024
0.3.52 171 7/15/2024
0.3.51 179 7/12/2024
0.3.50 181 7/1/2024
0.3.49 161 7/1/2024
0.3.48 205 5/22/2024
0.3.47 205 5/15/2024
0.3.46 167 5/14/2024
0.3.45 199 5/12/2024
0.3.44 176 5/12/2024
0.3.43 213 5/12/2024
0.3.42 198 5/12/2024
0.3.41 221 5/6/2024
0.3.40 223 5/4/2024
0.3.39 136 5/1/2024
0.3.38 174 4/30/2024
0.3.37 197 4/11/2024
0.3.36 203 4/10/2024
0.3.35 205 4/9/2024
0.3.34 174 4/8/2024
0.3.33 188 4/7/2024
0.3.32 195 4/5/2024
0.3.31 192 4/4/2024
0.3.30 180 4/4/2024
0.3.29 202 4/3/2024
0.3.28 145 4/3/2024
0.3.27 183 4/2/2024
0.3.26 176 4/2/2024
0.3.25 199 4/2/2024
0.3.24 222 3/24/2024
0.3.22 236 3/6/2024
0.3.21 212 3/6/2024
0.3.20 182 3/5/2024
0.3.19 203 3/2/2024
0.3.18 226 3/2/2024
0.3.13 195 3/1/2024
0.3.12 191 2/24/2024
0.3.10 192 2/14/2024
0.3.8 218 2/11/2024
0.3.7 175 2/11/2024
0.3.6 176 2/10/2024
0.3.5 195 2/10/2024
0.3.4 177 2/10/2024
0.3.2 191 2/10/2024
0.3.0 208 1/31/2024
0.2.21 291 10/24/2023
0.2.20 176 10/23/2023
0.2.19 196 10/20/2023
0.2.18 199 10/11/2023
0.2.17 192 10/5/2023
0.2.16 171 9/21/2023
0.2.15 183 9/21/2023
0.2.14 211 9/20/2023
0.2.13 198 9/20/2023
0.2.12 156 9/20/2023
0.2.11 190 9/19/2023
0.2.10 228 9/13/2023
0.2.9 309 8/26/2023
0.2.8 238 8/18/2023
0.2.7 213 8/15/2023
0.2.6 235 8/12/2023
0.2.5 248 8/11/2023
0.2.4 236 8/10/2023
0.2.3 232 8/2/2023
0.2.2 228 8/1/2023
0.2.1 262 7/25/2023
0.2.0 253 7/16/2023
0.1.24 251 5/26/2023
0.1.23 278 5/22/2023
0.1.22 223 5/22/2023
0.1.21 226 5/21/2023
0.1.20 254 5/20/2023
0.1.17 218 5/9/2023
0.1.16 231 5/6/2023
0.1.15 226 5/4/2023
0.1.14 251 5/2/2023
0.1.12 217 5/1/2023
0.1.11 256 4/29/2023
0.1.9 258 4/29/2023
0.1.8 236 4/29/2023
0.1.7 242 4/28/2023
0.1.6 251 4/27/2023
0.1.5 237 4/27/2023
0.1.4 265 4/25/2023
0.1.3 252 4/23/2023
0.1.2 270 4/22/2023
0.1.1 256 4/22/2023
0.0.4-preview040 238 4/21/2023
0.0.4-preview039 247 4/13/2023
0.0.4-preview038 217 4/11/2023
0.0.4-preview037 247 4/7/2023
0.0.4-preview036 240 3/31/2023
0.0.4-preview035 205 3/31/2023
0.0.4-preview034 211 3/31/2023
0.0.4-preview033 240 3/30/2023
0.0.4-preview032 245 3/19/2023
0.0.4-preview029 210 3/18/2023
0.0.4-preview028 229 3/15/2023
0.0.4-preview027 242 3/13/2023
0.0.4-preview026 191 3/12/2023
0.0.4-preview025 190 3/10/2023
0.0.4-preview024 257 3/9/2023
0.0.4-preview022 210 3/9/2023
0.0.4-preview021 236 3/7/2023
0.0.4-preview020 247 3/7/2023
0.0.4-preview019 230 3/4/2023
0.0.4-preview018 247 3/4/2023
0.0.4-preview017 232 3/4/2023
0.0.4-preview016 247 3/1/2023
0.0.4-preview015 231 2/28/2023
0.0.4-preview014 245 2/23/2023
0.0.4-preview013 219 2/23/2023
0.0.4-preview012 223 2/21/2023
0.0.4-preview011 247 2/20/2023
0.0.4-preview010 220 2/20/2023
0.0.4-preview009 237 2/19/2023
0.0.4-preview008 203 2/14/2023
0.0.4-preview007 219 2/10/2023
0.0.4-preview006 211 2/8/2023
0.0.4-preview005 260 2/8/2023
0.0.4-preview004 251 2/7/2023
0.0.4-preview003 208 2/7/2023
0.0.4-preview002 269 2/7/2023
0.0.4-preview001 267 2/3/2023
0.0.4-preview000 259 2/2/2023
0.0.3-preview032 248 2/1/2023
0.0.3-preview031 237 2/1/2023
0.0.3-preview030 240 1/30/2023
0.0.3-preview029 233 1/21/2023
0.0.3-preview028 233 1/19/2023
0.0.3-preview027 235 1/18/2023
0.0.3-preview026 223 1/16/2023
0.0.3-preview025 244 1/15/2023
0.0.3-preview024 249 1/15/2023
0.0.3-preview020 253 1/15/2023
0.0.3-preview019 241 1/11/2023
0.0.3-preview018 244 1/11/2023
0.0.3-preview017 244 1/7/2023
0.0.3-preview016 259 1/7/2023
0.0.3-preview015 262 1/6/2023
0.0.3-preview014 249 1/6/2023
0.0.3-preview013 233 1/6/2023
0.0.3-preview012 234 1/6/2023
0.0.3-preview011 208 1/6/2023
0.0.3-preview010 253 1/3/2023
0.0.3-preview009 238 1/3/2023
0.0.3-preview008 256 1/2/2023
0.0.3-preview007 246 1/2/2023
0.0.3-preview006 237 1/2/2023
0.0.3-preview005 252 1/2/2023
0.0.3-preview004 208 1/1/2023
0.0.3-preview003 244 12/31/2022
0.0.3-preview002 255 12/28/2022
0.0.3-preview001 301 12/21/2022
0.0.3-preview000 261 11/29/2022
0.0.2-preview003 199 11/4/2022
0.0.2-preview002 206 11/4/2022
0.0.2-preview000 227 11/4/2022
0.0.1-preview3373625764 286 11/1/2022
0.0.1-preview002 232 11/4/2022
0.0.1-preview001 213 11/4/2022