Udap.Server 0.4.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Udap.Server --version 0.4.2
                    
NuGet\Install-Package Udap.Server -Version 0.4.2
                    
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.4.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Udap.Server" Version="0.4.2" />
                    
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.4.2
                    
#r "nuget: Udap.Server, 0.4.2"
                    
#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.
#addin nuget:?package=Udap.Server&version=0.4.2
                    
Install Udap.Server as a Cake Addin
#tool nuget:?package=Udap.Server&version=0.4.2
                    
Install Udap.Server 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. 
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.4.7 85 4/18/2025
0.4.6 237 3/17/2025
0.4.5 406 3/4/2025
0.4.4 181 1/15/2025
0.4.3 123 1/14/2025
0.4.2 122 1/14/2025
0.4.1 265 1/13/2025
0.4.0 157 12/14/2024
0.3.96 162 11/6/2024
0.3.95 121 11/2/2024
0.3.94 118 10/31/2024
0.3.93 282 10/13/2024
0.3.92 105 10/13/2024
0.3.91 106 10/10/2024
0.3.89 105 10/10/2024
0.3.87 108 10/5/2024
0.3.86 108 10/5/2024
0.3.85 99 10/4/2024
0.3.84 112 10/3/2024
0.3.83 108 10/3/2024
0.3.82 127 9/20/2024
0.3.81 117 9/19/2024
0.3.80 103 9/19/2024
0.3.79 107 9/19/2024
0.3.78 91 9/19/2024
0.3.77 105 9/17/2024
0.3.76 107 9/17/2024
0.3.75 113 9/12/2024
0.3.74 128 9/12/2024
0.3.73 117 9/10/2024
0.3.72 142 9/7/2024
0.3.71 137 9/5/2024
0.3.70 123 9/5/2024
0.3.69 140 9/5/2024
0.3.68 124 9/4/2024
0.3.67 113 9/4/2024
0.3.66 105 9/4/2024
0.3.65 108 9/4/2024
0.3.64 111 9/2/2024
0.3.63 119 8/31/2024
0.3.62 114 8/29/2024
0.3.61 124 8/28/2024
0.3.60 106 8/2/2024
0.3.59 104 8/1/2024
0.3.58 108 8/1/2024
0.3.57 140 7/19/2024
0.3.56 110 7/19/2024
0.3.54 114 7/18/2024
0.3.53 113 7/15/2024
0.3.52 101 7/15/2024
0.3.51 115 7/12/2024
0.3.50 123 7/1/2024
0.3.49 121 7/1/2024
0.3.48 156 5/22/2024
0.3.47 149 5/15/2024
0.3.46 120 5/14/2024
0.3.45 134 5/12/2024
0.3.44 130 5/12/2024
0.3.43 138 5/12/2024
0.3.42 116 5/12/2024
0.3.41 137 5/6/2024
0.3.40 154 5/4/2024
0.3.39 86 5/1/2024
0.3.38 127 4/30/2024
0.3.37 138 4/11/2024
0.3.36 133 4/10/2024
0.3.35 133 4/9/2024
0.3.34 132 4/8/2024
0.3.33 126 4/7/2024
0.3.32 147 4/5/2024
0.3.31 126 4/4/2024
0.3.30 138 4/4/2024
0.3.29 138 4/3/2024
0.3.28 107 4/3/2024
0.3.27 135 4/2/2024
0.3.26 112 4/2/2024
0.3.25 133 4/2/2024
0.3.24 141 3/24/2024
0.3.22 155 3/6/2024
0.3.21 143 3/6/2024
0.3.20 114 3/5/2024
0.3.19 142 3/2/2024
0.3.18 162 3/2/2024
0.3.13 137 3/1/2024
0.3.12 142 2/24/2024
0.3.10 131 2/14/2024
0.3.8 142 2/11/2024
0.3.7 141 2/11/2024
0.3.6 145 2/10/2024
0.3.5 142 2/10/2024
0.3.4 144 2/10/2024
0.3.2 129 2/10/2024
0.3.0 142 1/31/2024
0.2.21 257 10/24/2023
0.2.20 122 10/23/2023
0.2.19 132 10/20/2023
0.2.18 138 10/11/2023
0.2.17 142 10/5/2023
0.2.16 149 9/21/2023
0.2.15 148 9/21/2023
0.2.14 145 9/20/2023
0.2.13 143 9/20/2023
0.2.12 124 9/20/2023
0.2.11 138 9/19/2023
0.2.10 171 9/13/2023
0.2.9 235 8/26/2023
0.2.8 155 8/18/2023
0.2.7 160 8/15/2023
0.2.6 161 8/12/2023
0.2.5 178 8/11/2023
0.2.4 160 8/10/2023
0.2.3 170 8/2/2023
0.2.2 149 8/1/2023
0.2.1 166 7/25/2023
0.2.0 170 7/16/2023
0.1.24 161 5/26/2023
0.1.23 177 5/22/2023
0.1.22 156 5/22/2023
0.1.21 147 5/21/2023
0.1.20 162 5/20/2023
0.1.17 147 5/9/2023
0.1.16 142 5/6/2023
0.1.15 158 5/4/2023
0.1.14 158 5/2/2023
0.1.12 157 5/1/2023
0.1.11 176 4/29/2023
0.1.9 185 4/29/2023
0.1.8 169 4/29/2023
0.1.7 174 4/28/2023
0.1.6 162 4/27/2023
0.1.5 158 4/27/2023
0.1.4 167 4/25/2023
0.1.3 184 4/23/2023
0.1.2 188 4/22/2023
0.1.1 176 4/22/2023
0.0.4-preview040 137 4/21/2023
0.0.4-preview039 150 4/13/2023
0.0.4-preview038 148 4/11/2023
0.0.4-preview037 146 4/7/2023
0.0.4-preview036 133 3/31/2023
0.0.4-preview035 127 3/31/2023
0.0.4-preview034 136 3/31/2023
0.0.4-preview033 138 3/30/2023
0.0.4-preview032 154 3/19/2023
0.0.4-preview029 144 3/18/2023
0.0.4-preview028 126 3/15/2023
0.0.4-preview027 147 3/13/2023
0.0.4-preview026 111 3/12/2023
0.0.4-preview025 122 3/10/2023
0.0.4-preview024 154 3/9/2023
0.0.4-preview022 141 3/9/2023
0.0.4-preview021 150 3/7/2023
0.0.4-preview020 150 3/7/2023
0.0.4-preview019 141 3/4/2023
0.0.4-preview018 149 3/4/2023
0.0.4-preview017 142 3/4/2023
0.0.4-preview016 147 3/1/2023
0.0.4-preview015 143 2/28/2023
0.0.4-preview014 149 2/23/2023
0.0.4-preview013 155 2/23/2023
0.0.4-preview012 151 2/21/2023
0.0.4-preview011 151 2/20/2023
0.0.4-preview010 147 2/20/2023
0.0.4-preview009 150 2/19/2023
0.0.4-preview008 133 2/14/2023
0.0.4-preview007 148 2/10/2023
0.0.4-preview006 151 2/8/2023
0.0.4-preview005 154 2/8/2023
0.0.4-preview004 133 2/7/2023
0.0.4-preview003 139 2/7/2023
0.0.4-preview002 161 2/7/2023
0.0.4-preview001 153 2/3/2023
0.0.4-preview000 161 2/2/2023
0.0.3-preview032 151 2/1/2023
0.0.3-preview031 147 2/1/2023
0.0.3-preview030 172 1/30/2023
0.0.3-preview029 155 1/21/2023
0.0.3-preview028 152 1/19/2023
0.0.3-preview027 146 1/18/2023
0.0.3-preview026 155 1/16/2023
0.0.3-preview025 162 1/15/2023
0.0.3-preview024 163 1/15/2023
0.0.3-preview020 150 1/15/2023
0.0.3-preview019 162 1/11/2023
0.0.3-preview018 167 1/11/2023
0.0.3-preview017 157 1/7/2023
0.0.3-preview016 152 1/7/2023
0.0.3-preview015 155 1/6/2023
0.0.3-preview014 147 1/6/2023
0.0.3-preview013 163 1/6/2023
0.0.3-preview012 162 1/6/2023
0.0.3-preview011 141 1/6/2023
0.0.3-preview010 163 1/3/2023
0.0.3-preview009 157 1/3/2023
0.0.3-preview008 157 1/2/2023
0.0.3-preview007 156 1/2/2023
0.0.3-preview006 153 1/2/2023
0.0.3-preview005 153 1/2/2023
0.0.3-preview004 149 1/1/2023
0.0.3-preview003 155 12/31/2022
0.0.3-preview002 186 12/28/2022
0.0.3-preview001 201 12/21/2022
0.0.3-preview000 153 11/29/2022
0.0.2-preview003 120 11/4/2022
0.0.2-preview002 124 11/4/2022
0.0.2-preview000 148 11/4/2022
0.0.1-preview3373625764 182 11/1/2022
0.0.1-preview002 154 11/4/2022
0.0.1-preview001 146 11/4/2022