Udap.Server 0.2.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Udap.Server --version 0.2.4
NuGet\Install-Package Udap.Server -Version 0.2.4
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.2.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Udap.Server --version 0.2.4
#r "nuget: Udap.Server, 0.2.4"
#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.
// Install Udap.Server as a Cake Addin
#addin nuget:?package=Udap.Server&version=0.2.4

// Install Udap.Server as a Cake Tool
#tool nuget:?package=Udap.Server&version=0.2.4

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.ServerSupport = udapServerOptions.ServerSupport;
            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 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. 
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.3.48 95 5/22/2024
0.3.47 110 5/15/2024
0.3.46 77 5/14/2024
0.3.45 85 5/12/2024
0.3.44 82 5/12/2024
0.3.43 87 5/12/2024
0.3.42 85 5/12/2024
0.3.41 93 5/6/2024
0.3.40 97 5/4/2024
0.3.39 49 5/1/2024
0.3.38 82 4/30/2024
0.3.37 93 4/11/2024
0.3.36 81 4/10/2024
0.3.35 88 4/9/2024
0.3.34 94 4/8/2024
0.3.33 91 4/7/2024
0.3.32 93 4/5/2024
0.3.31 91 4/4/2024
0.3.30 85 4/4/2024
0.3.29 91 4/3/2024
0.3.28 79 4/3/2024
0.3.27 92 4/2/2024
0.3.26 77 4/2/2024
0.3.25 93 4/2/2024
0.3.24 102 3/24/2024
0.3.22 107 3/6/2024
0.3.21 92 3/6/2024
0.3.20 78 3/5/2024
0.3.19 97 3/2/2024
0.3.18 105 3/2/2024
0.3.13 90 3/1/2024
0.3.12 90 2/24/2024
0.3.10 96 2/14/2024
0.3.8 93 2/11/2024
0.3.7 90 2/11/2024
0.3.6 88 2/10/2024
0.3.5 89 2/10/2024
0.3.4 90 2/10/2024
0.3.2 90 2/10/2024
0.3.0 95 1/31/2024
0.2.21 217 10/24/2023
0.2.20 90 10/23/2023
0.2.19 108 10/20/2023
0.2.18 109 10/11/2023
0.2.17 105 10/5/2023
0.2.16 113 9/21/2023
0.2.15 110 9/21/2023
0.2.14 104 9/20/2023
0.2.13 98 9/20/2023
0.2.12 97 9/20/2023
0.2.11 92 9/19/2023
0.2.10 129 9/13/2023
0.2.9 203 8/26/2023
0.2.8 116 8/18/2023
0.2.7 138 8/15/2023
0.2.6 132 8/12/2023
0.2.5 140 8/11/2023
0.2.4 121 8/10/2023
0.2.3 132 8/2/2023
0.2.2 129 8/1/2023
0.2.1 132 7/25/2023
0.2.0 150 7/16/2023
0.1.24 130 5/26/2023
0.1.23 142 5/22/2023
0.1.22 117 5/22/2023
0.1.21 123 5/21/2023
0.1.20 117 5/20/2023
0.1.17 117 5/9/2023
0.1.16 111 5/6/2023
0.1.15 118 5/4/2023
0.1.14 126 5/2/2023
0.1.12 126 5/1/2023
0.1.11 141 4/29/2023
0.1.9 141 4/29/2023
0.1.8 127 4/29/2023
0.1.7 135 4/28/2023
0.1.6 136 4/27/2023
0.1.5 126 4/27/2023
0.1.4 132 4/25/2023
0.1.3 147 4/23/2023
0.1.2 157 4/22/2023
0.1.1 150 4/22/2023
0.0.4-preview040 101 4/21/2023
0.0.4-preview039 113 4/13/2023
0.0.4-preview038 114 4/11/2023
0.0.4-preview037 102 4/7/2023
0.0.4-preview036 102 3/31/2023
0.0.4-preview035 106 3/31/2023
0.0.4-preview034 101 3/31/2023
0.0.4-preview033 103 3/30/2023
0.0.4-preview032 112 3/19/2023
0.0.4-preview029 115 3/18/2023
0.0.4-preview028 93 3/15/2023
0.0.4-preview027 111 3/13/2023
0.0.4-preview026 83 3/12/2023
0.0.4-preview025 102 3/10/2023
0.0.4-preview024 121 3/9/2023
0.0.4-preview022 109 3/9/2023
0.0.4-preview021 115 3/7/2023
0.0.4-preview020 113 3/7/2023
0.0.4-preview019 109 3/4/2023
0.0.4-preview018 110 3/4/2023
0.0.4-preview017 107 3/4/2023
0.0.4-preview016 118 3/1/2023
0.0.4-preview015 107 2/28/2023
0.0.4-preview014 128 2/23/2023
0.0.4-preview013 119 2/23/2023
0.0.4-preview012 117 2/21/2023
0.0.4-preview011 109 2/20/2023
0.0.4-preview010 115 2/20/2023
0.0.4-preview009 113 2/19/2023
0.0.4-preview008 96 2/14/2023
0.0.4-preview007 117 2/10/2023
0.0.4-preview006 112 2/8/2023
0.0.4-preview005 115 2/8/2023
0.0.4-preview004 111 2/7/2023
0.0.4-preview003 109 2/7/2023
0.0.4-preview002 117 2/7/2023
0.0.4-preview001 114 2/3/2023
0.0.4-preview000 123 2/2/2023
0.0.3-preview032 128 2/1/2023
0.0.3-preview031 115 2/1/2023
0.0.3-preview030 130 1/30/2023
0.0.3-preview029 126 1/21/2023
0.0.3-preview028 124 1/19/2023
0.0.3-preview027 106 1/18/2023
0.0.3-preview026 126 1/16/2023
0.0.3-preview025 124 1/15/2023
0.0.3-preview024 132 1/15/2023
0.0.3-preview020 118 1/15/2023
0.0.3-preview019 130 1/11/2023
0.0.3-preview018 126 1/11/2023
0.0.3-preview017 114 1/7/2023
0.0.3-preview016 111 1/7/2023
0.0.3-preview015 121 1/6/2023
0.0.3-preview014 116 1/6/2023
0.0.3-preview013 130 1/6/2023
0.0.3-preview012 123 1/6/2023
0.0.3-preview011 109 1/6/2023
0.0.3-preview010 117 1/3/2023
0.0.3-preview009 119 1/3/2023
0.0.3-preview008 119 1/2/2023
0.0.3-preview007 125 1/2/2023
0.0.3-preview006 114 1/2/2023
0.0.3-preview005 109 1/2/2023
0.0.3-preview004 106 1/1/2023
0.0.3-preview003 118 12/31/2022
0.0.3-preview002 142 12/28/2022
0.0.3-preview001 167 12/21/2022
0.0.3-preview000 115 11/29/2022
0.0.2-preview003 85 11/4/2022
0.0.2-preview002 92 11/4/2022
0.0.2-preview000 118 11/4/2022
0.0.1-preview3373625764 138 11/1/2022
0.0.1-preview002 123 11/4/2022
0.0.1-preview001 116 11/4/2022