Udap.Server 0.3.76

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

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

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. 
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.93 113 10/13/2024
0.3.92 74 10/13/2024
0.3.91 75 10/10/2024
0.3.89 74 10/10/2024
0.3.87 80 10/5/2024
0.3.86 79 10/5/2024
0.3.85 74 10/4/2024
0.3.84 82 10/3/2024
0.3.83 76 10/3/2024
0.3.82 97 9/20/2024
0.3.81 85 9/19/2024
0.3.80 77 9/19/2024
0.3.79 78 9/19/2024
0.3.78 67 9/19/2024
0.3.77 79 9/17/2024
0.3.76 85 9/17/2024
0.3.75 87 9/12/2024
0.3.74 107 9/12/2024
0.3.73 96 9/10/2024
0.3.72 113 9/7/2024
0.3.71 117 9/5/2024
0.3.70 102 9/5/2024
0.3.69 120 9/5/2024
0.3.68 102 9/4/2024
0.3.67 87 9/4/2024
0.3.66 83 9/4/2024
0.3.65 86 9/4/2024
0.3.64 84 9/2/2024
0.3.63 97 8/31/2024
0.3.62 89 8/29/2024
0.3.61 101 8/28/2024
0.3.60 85 8/2/2024
0.3.59 83 8/1/2024
0.3.58 88 8/1/2024
0.3.57 115 7/19/2024
0.3.56 87 7/19/2024
0.3.54 90 7/18/2024
0.3.53 88 7/15/2024
0.3.52 78 7/15/2024
0.3.51 89 7/12/2024
0.3.50 101 7/1/2024
0.3.49 98 7/1/2024
0.3.48 133 5/22/2024
0.3.47 131 5/15/2024
0.3.46 101 5/14/2024
0.3.45 111 5/12/2024
0.3.44 109 5/12/2024
0.3.43 118 5/12/2024
0.3.42 96 5/12/2024
0.3.41 119 5/6/2024
0.3.40 134 5/4/2024
0.3.39 66 5/1/2024
0.3.38 106 4/30/2024
0.3.37 119 4/11/2024
0.3.36 105 4/10/2024
0.3.35 112 4/9/2024
0.3.34 109 4/8/2024
0.3.33 107 4/7/2024
0.3.32 129 4/5/2024
0.3.31 107 4/4/2024
0.3.30 115 4/4/2024
0.3.29 121 4/3/2024
0.3.28 85 4/3/2024
0.3.27 116 4/2/2024
0.3.26 93 4/2/2024
0.3.25 117 4/2/2024
0.3.24 121 3/24/2024
0.3.22 135 3/6/2024
0.3.21 121 3/6/2024
0.3.20 97 3/5/2024
0.3.19 125 3/2/2024
0.3.18 143 3/2/2024
0.3.13 116 3/1/2024
0.3.12 119 2/24/2024
0.3.10 110 2/14/2024
0.3.8 115 2/11/2024
0.3.7 118 2/11/2024
0.3.6 121 2/10/2024
0.3.5 121 2/10/2024
0.3.4 116 2/10/2024
0.3.2 106 2/10/2024
0.3.0 125 1/31/2024
0.2.21 245 10/24/2023
0.2.20 103 10/23/2023
0.2.19 115 10/20/2023
0.2.18 126 10/11/2023
0.2.17 127 10/5/2023
0.2.16 137 9/21/2023
0.2.15 134 9/21/2023
0.2.14 132 9/20/2023
0.2.13 130 9/20/2023
0.2.12 112 9/20/2023
0.2.11 124 9/19/2023
0.2.10 156 9/13/2023
0.2.9 223 8/26/2023
0.2.8 142 8/18/2023
0.2.7 146 8/15/2023
0.2.6 148 8/12/2023
0.2.5 163 8/11/2023
0.2.4 145 8/10/2023
0.2.3 155 8/2/2023
0.2.2 134 8/1/2023
0.2.1 153 7/25/2023
0.2.0 157 7/16/2023
0.1.24 143 5/26/2023
0.1.23 159 5/22/2023
0.1.22 139 5/22/2023
0.1.21 130 5/21/2023
0.1.20 140 5/20/2023
0.1.17 128 5/9/2023
0.1.16 122 5/6/2023
0.1.15 138 5/4/2023
0.1.14 137 5/2/2023
0.1.12 137 5/1/2023
0.1.11 156 4/29/2023
0.1.9 165 4/29/2023
0.1.8 142 4/29/2023
0.1.7 153 4/28/2023
0.1.6 142 4/27/2023
0.1.5 138 4/27/2023
0.1.4 147 4/25/2023
0.1.3 165 4/23/2023
0.1.2 168 4/22/2023
0.1.1 157 4/22/2023
0.0.4-preview040 120 4/21/2023
0.0.4-preview039 133 4/13/2023
0.0.4-preview038 131 4/11/2023
0.0.4-preview037 126 4/7/2023
0.0.4-preview036 115 3/31/2023
0.0.4-preview035 109 3/31/2023
0.0.4-preview034 119 3/31/2023
0.0.4-preview033 122 3/30/2023
0.0.4-preview032 136 3/19/2023
0.0.4-preview029 127 3/18/2023
0.0.4-preview028 111 3/15/2023
0.0.4-preview027 130 3/13/2023
0.0.4-preview026 94 3/12/2023
0.0.4-preview025 105 3/10/2023
0.0.4-preview024 136 3/9/2023
0.0.4-preview022 124 3/9/2023
0.0.4-preview021 132 3/7/2023
0.0.4-preview020 133 3/7/2023
0.0.4-preview019 124 3/4/2023
0.0.4-preview018 126 3/4/2023
0.0.4-preview017 125 3/4/2023
0.0.4-preview016 130 3/1/2023
0.0.4-preview015 125 2/28/2023
0.0.4-preview014 131 2/23/2023
0.0.4-preview013 137 2/23/2023
0.0.4-preview012 135 2/21/2023
0.0.4-preview011 131 2/20/2023
0.0.4-preview010 130 2/20/2023
0.0.4-preview009 134 2/19/2023
0.0.4-preview008 117 2/14/2023
0.0.4-preview007 132 2/10/2023
0.0.4-preview006 133 2/8/2023
0.0.4-preview005 136 2/8/2023
0.0.4-preview004 116 2/7/2023
0.0.4-preview003 121 2/7/2023
0.0.4-preview002 140 2/7/2023
0.0.4-preview001 136 2/3/2023
0.0.4-preview000 144 2/2/2023
0.0.3-preview032 133 2/1/2023
0.0.3-preview031 128 2/1/2023
0.0.3-preview030 155 1/30/2023
0.0.3-preview029 137 1/21/2023
0.0.3-preview028 133 1/19/2023
0.0.3-preview027 129 1/18/2023
0.0.3-preview026 137 1/16/2023
0.0.3-preview025 144 1/15/2023
0.0.3-preview024 145 1/15/2023
0.0.3-preview020 131 1/15/2023
0.0.3-preview019 144 1/11/2023
0.0.3-preview018 147 1/11/2023
0.0.3-preview017 138 1/7/2023
0.0.3-preview016 130 1/7/2023
0.0.3-preview015 134 1/6/2023
0.0.3-preview014 129 1/6/2023
0.0.3-preview013 145 1/6/2023
0.0.3-preview012 142 1/6/2023
0.0.3-preview011 123 1/6/2023
0.0.3-preview010 144 1/3/2023
0.0.3-preview009 133 1/3/2023
0.0.3-preview008 139 1/2/2023
0.0.3-preview007 135 1/2/2023
0.0.3-preview006 134 1/2/2023
0.0.3-preview005 135 1/2/2023
0.0.3-preview004 131 1/1/2023
0.0.3-preview003 137 12/31/2022
0.0.3-preview002 168 12/28/2022
0.0.3-preview001 183 12/21/2022
0.0.3-preview000 135 11/29/2022
0.0.2-preview003 91 11/4/2022
0.0.2-preview002 104 11/4/2022
0.0.2-preview000 128 11/4/2022
0.0.1-preview3373625764 159 11/1/2022
0.0.1-preview002 132 11/4/2022
0.0.1-preview001 126 11/4/2022