Udap.Server
0.2.6
See the version list below for details.
dotnet add package Udap.Server --version 0.2.6
NuGet\Install-Package Udap.Server -Version 0.2.6
<PackageReference Include="Udap.Server" Version="0.2.6" />
paket add Udap.Server --version 0.2.6
#r "nuget: Udap.Server, 0.2.6"
// Install Udap.Server as a Cake Addin #addin nuget:?package=Udap.Server&version=0.2.6 // Install Udap.Server as a Cake Tool #tool nuget:?package=Udap.Server&version=0.2.6
Udap.Server
📦 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
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 | Versions 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. |
-
net6.0
- AutoMapper (>= 12.0.1)
- Duende.IdentityServer (>= 6.3.3)
- Duende.IdentityServer.AspNetIdentity (>= 6.3.3)
- Duende.IdentityServer.EntityFramework.Storage (>= 6.3.3)
- IdentityModel.AspNetCore.OAuth2Introspection (>= 6.2.0)
- Microsoft.EntityFrameworkCore (>= 7.0.10)
- System.IdentityModel.Tokens.Jwt (>= 6.32.1)
- Udap.Client (>= 0.2.6)
- Udap.Common (>= 0.2.6)
- Udap.Model (>= 0.2.6)
-
net7.0
- AutoMapper (>= 12.0.1)
- Duende.IdentityServer (>= 6.3.3)
- Duende.IdentityServer.AspNetIdentity (>= 6.3.3)
- Duende.IdentityServer.EntityFramework.Storage (>= 6.3.3)
- IdentityModel.AspNetCore.OAuth2Introspection (>= 6.2.0)
- Microsoft.EntityFrameworkCore (>= 7.0.10)
- System.IdentityModel.Tokens.Jwt (>= 6.32.1)
- Udap.Client (>= 0.2.6)
- Udap.Common (>= 0.2.6)
- Udap.Model (>= 0.2.6)
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.96 | 96 | 11/6/2024 |
0.3.95 | 81 | 11/2/2024 |
0.3.94 | 85 | 10/31/2024 |
0.3.93 | 162 | 10/13/2024 |
0.3.92 | 83 | 10/13/2024 |
0.3.91 | 84 | 10/10/2024 |
0.3.89 | 83 | 10/10/2024 |
0.3.87 | 88 | 10/5/2024 |
0.3.86 | 87 | 10/5/2024 |
0.3.85 | 82 | 10/4/2024 |
0.3.84 | 90 | 10/3/2024 |
0.3.83 | 84 | 10/3/2024 |
0.3.82 | 104 | 9/20/2024 |
0.3.81 | 92 | 9/19/2024 |
0.3.80 | 83 | 9/19/2024 |
0.3.79 | 83 | 9/19/2024 |
0.3.78 | 72 | 9/19/2024 |
0.3.77 | 84 | 9/17/2024 |
0.3.76 | 90 | 9/17/2024 |
0.3.75 | 91 | 9/12/2024 |
0.3.74 | 111 | 9/12/2024 |
0.3.73 | 100 | 9/10/2024 |
0.3.72 | 117 | 9/7/2024 |
0.3.71 | 120 | 9/5/2024 |
0.3.70 | 105 | 9/5/2024 |
0.3.69 | 123 | 9/5/2024 |
0.3.68 | 105 | 9/4/2024 |
0.3.67 | 90 | 9/4/2024 |
0.3.66 | 86 | 9/4/2024 |
0.3.65 | 89 | 9/4/2024 |
0.3.64 | 87 | 9/2/2024 |
0.3.63 | 99 | 8/31/2024 |
0.3.62 | 91 | 8/29/2024 |
0.3.61 | 103 | 8/28/2024 |
0.3.60 | 87 | 8/2/2024 |
0.3.59 | 85 | 8/1/2024 |
0.3.58 | 90 | 8/1/2024 |
0.3.57 | 117 | 7/19/2024 |
0.3.56 | 89 | 7/19/2024 |
0.3.54 | 94 | 7/18/2024 |
0.3.53 | 92 | 7/15/2024 |
0.3.52 | 82 | 7/15/2024 |
0.3.51 | 93 | 7/12/2024 |
0.3.50 | 103 | 7/1/2024 |
0.3.49 | 100 | 7/1/2024 |
0.3.48 | 137 | 5/22/2024 |
0.3.47 | 133 | 5/15/2024 |
0.3.46 | 103 | 5/14/2024 |
0.3.45 | 115 | 5/12/2024 |
0.3.44 | 111 | 5/12/2024 |
0.3.43 | 120 | 5/12/2024 |
0.3.42 | 98 | 5/12/2024 |
0.3.41 | 121 | 5/6/2024 |
0.3.40 | 136 | 5/4/2024 |
0.3.39 | 69 | 5/1/2024 |
0.3.38 | 108 | 4/30/2024 |
0.3.37 | 121 | 4/11/2024 |
0.3.36 | 107 | 4/10/2024 |
0.3.35 | 114 | 4/9/2024 |
0.3.34 | 113 | 4/8/2024 |
0.3.33 | 109 | 4/7/2024 |
0.3.32 | 131 | 4/5/2024 |
0.3.31 | 109 | 4/4/2024 |
0.3.30 | 117 | 4/4/2024 |
0.3.29 | 123 | 4/3/2024 |
0.3.28 | 89 | 4/3/2024 |
0.3.27 | 118 | 4/2/2024 |
0.3.26 | 97 | 4/2/2024 |
0.3.25 | 119 | 4/2/2024 |
0.3.24 | 123 | 3/24/2024 |
0.3.22 | 139 | 3/6/2024 |
0.3.21 | 125 | 3/6/2024 |
0.3.20 | 99 | 3/5/2024 |
0.3.19 | 127 | 3/2/2024 |
0.3.18 | 145 | 3/2/2024 |
0.3.13 | 120 | 3/1/2024 |
0.3.12 | 121 | 2/24/2024 |
0.3.10 | 112 | 2/14/2024 |
0.3.8 | 123 | 2/11/2024 |
0.3.7 | 122 | 2/11/2024 |
0.3.6 | 125 | 2/10/2024 |
0.3.5 | 123 | 2/10/2024 |
0.3.4 | 126 | 2/10/2024 |
0.3.2 | 110 | 2/10/2024 |
0.3.0 | 127 | 1/31/2024 |
0.2.21 | 247 | 10/24/2023 |
0.2.20 | 109 | 10/23/2023 |
0.2.19 | 119 | 10/20/2023 |
0.2.18 | 128 | 10/11/2023 |
0.2.17 | 131 | 10/5/2023 |
0.2.16 | 139 | 9/21/2023 |
0.2.15 | 136 | 9/21/2023 |
0.2.14 | 134 | 9/20/2023 |
0.2.13 | 132 | 9/20/2023 |
0.2.12 | 114 | 9/20/2023 |
0.2.11 | 126 | 9/19/2023 |
0.2.10 | 160 | 9/13/2023 |
0.2.9 | 225 | 8/26/2023 |
0.2.8 | 144 | 8/18/2023 |
0.2.7 | 148 | 8/15/2023 |
0.2.6 | 150 | 8/12/2023 |
0.2.5 | 165 | 8/11/2023 |
0.2.4 | 149 | 8/10/2023 |
0.2.3 | 157 | 8/2/2023 |
0.2.2 | 138 | 8/1/2023 |
0.2.1 | 155 | 7/25/2023 |
0.2.0 | 159 | 7/16/2023 |
0.1.24 | 147 | 5/26/2023 |
0.1.23 | 161 | 5/22/2023 |
0.1.22 | 141 | 5/22/2023 |
0.1.21 | 132 | 5/21/2023 |
0.1.20 | 148 | 5/20/2023 |
0.1.17 | 130 | 5/9/2023 |
0.1.16 | 124 | 5/6/2023 |
0.1.15 | 140 | 5/4/2023 |
0.1.14 | 139 | 5/2/2023 |
0.1.12 | 139 | 5/1/2023 |
0.1.11 | 158 | 4/29/2023 |
0.1.9 | 167 | 4/29/2023 |
0.1.8 | 150 | 4/29/2023 |
0.1.7 | 155 | 4/28/2023 |
0.1.6 | 144 | 4/27/2023 |
0.1.5 | 140 | 4/27/2023 |
0.1.4 | 149 | 4/25/2023 |
0.1.3 | 167 | 4/23/2023 |
0.1.2 | 170 | 4/22/2023 |
0.1.1 | 159 | 4/22/2023 |
0.0.4-preview040 | 122 | 4/21/2023 |
0.0.4-preview039 | 135 | 4/13/2023 |
0.0.4-preview038 | 133 | 4/11/2023 |
0.0.4-preview037 | 128 | 4/7/2023 |
0.0.4-preview036 | 117 | 3/31/2023 |
0.0.4-preview035 | 111 | 3/31/2023 |
0.0.4-preview034 | 121 | 3/31/2023 |
0.0.4-preview033 | 124 | 3/30/2023 |
0.0.4-preview032 | 138 | 3/19/2023 |
0.0.4-preview029 | 129 | 3/18/2023 |
0.0.4-preview028 | 113 | 3/15/2023 |
0.0.4-preview027 | 132 | 3/13/2023 |
0.0.4-preview026 | 96 | 3/12/2023 |
0.0.4-preview025 | 107 | 3/10/2023 |
0.0.4-preview024 | 138 | 3/9/2023 |
0.0.4-preview022 | 126 | 3/9/2023 |
0.0.4-preview021 | 134 | 3/7/2023 |
0.0.4-preview020 | 135 | 3/7/2023 |
0.0.4-preview019 | 126 | 3/4/2023 |
0.0.4-preview018 | 134 | 3/4/2023 |
0.0.4-preview017 | 127 | 3/4/2023 |
0.0.4-preview016 | 132 | 3/1/2023 |
0.0.4-preview015 | 127 | 2/28/2023 |
0.0.4-preview014 | 135 | 2/23/2023 |
0.0.4-preview013 | 139 | 2/23/2023 |
0.0.4-preview012 | 137 | 2/21/2023 |
0.0.4-preview011 | 133 | 2/20/2023 |
0.0.4-preview010 | 132 | 2/20/2023 |
0.0.4-preview009 | 136 | 2/19/2023 |
0.0.4-preview008 | 119 | 2/14/2023 |
0.0.4-preview007 | 134 | 2/10/2023 |
0.0.4-preview006 | 135 | 2/8/2023 |
0.0.4-preview005 | 138 | 2/8/2023 |
0.0.4-preview004 | 118 | 2/7/2023 |
0.0.4-preview003 | 123 | 2/7/2023 |
0.0.4-preview002 | 142 | 2/7/2023 |
0.0.4-preview001 | 138 | 2/3/2023 |
0.0.4-preview000 | 146 | 2/2/2023 |
0.0.3-preview032 | 135 | 2/1/2023 |
0.0.3-preview031 | 132 | 2/1/2023 |
0.0.3-preview030 | 157 | 1/30/2023 |
0.0.3-preview029 | 139 | 1/21/2023 |
0.0.3-preview028 | 135 | 1/19/2023 |
0.0.3-preview027 | 131 | 1/18/2023 |
0.0.3-preview026 | 139 | 1/16/2023 |
0.0.3-preview025 | 146 | 1/15/2023 |
0.0.3-preview024 | 147 | 1/15/2023 |
0.0.3-preview020 | 133 | 1/15/2023 |
0.0.3-preview019 | 146 | 1/11/2023 |
0.0.3-preview018 | 151 | 1/11/2023 |
0.0.3-preview017 | 140 | 1/7/2023 |
0.0.3-preview016 | 135 | 1/7/2023 |
0.0.3-preview015 | 138 | 1/6/2023 |
0.0.3-preview014 | 131 | 1/6/2023 |
0.0.3-preview013 | 147 | 1/6/2023 |
0.0.3-preview012 | 146 | 1/6/2023 |
0.0.3-preview011 | 125 | 1/6/2023 |
0.0.3-preview010 | 146 | 1/3/2023 |
0.0.3-preview009 | 141 | 1/3/2023 |
0.0.3-preview008 | 141 | 1/2/2023 |
0.0.3-preview007 | 140 | 1/2/2023 |
0.0.3-preview006 | 136 | 1/2/2023 |
0.0.3-preview005 | 137 | 1/2/2023 |
0.0.3-preview004 | 133 | 1/1/2023 |
0.0.3-preview003 | 139 | 12/31/2022 |
0.0.3-preview002 | 170 | 12/28/2022 |
0.0.3-preview001 | 185 | 12/21/2022 |
0.0.3-preview000 | 137 | 11/29/2022 |
0.0.2-preview003 | 99 | 11/4/2022 |
0.0.2-preview002 | 108 | 11/4/2022 |
0.0.2-preview000 | 131 | 11/4/2022 |
0.0.1-preview3373625764 | 164 | 11/1/2022 |
0.0.1-preview002 | 137 | 11/4/2022 |
0.0.1-preview001 | 129 | 11/4/2022 |