diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json
index db29a16b0..96da75c0c 100644
--- a/.config/dotnet-tools.json
+++ b/.config/dotnet-tools.json
@@ -9,10 +9,10 @@
]
},
"dotnet-ef": {
- "version": "3.1.0",
+ "version": "8.0.11",
"commands": [
"dotnet-ef"
]
}
}
-}
\ No newline at end of file
+}
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index bdea35305..7c74c36a8 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -6,7 +6,7 @@ Then we can decide if and how a feature or a change could be implemented and if
Also read this first: [Being a good open source citizen](https://hackernoon.com/being-a-good-open-source-citizen-9060d0ab9732#.x3hocgw85)
## Found an issue or a bug?
-Please start a discussion on the [core repo issue tracker](https://github.com/IdentityServer/IdentityServer4/issues).
+Please start a discussion on the [repository issue tracker](https://github.com/joneja09/IdentityServer4/issues).
## Filing issues
The best way to get your bug fixed is to be as detailed as you can be about the problem.
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8fde5e98f..40aa3785e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,6 +5,7 @@ on:
branches:
- main
- features/**
+ - cursor/**
tags:
- '*.*.*'
pull_request:
@@ -21,8 +22,18 @@ jobs:
name: ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
steps:
- - uses: actions/checkout@af513c7a016048ae468971c52ed77d9562c7c819
+ - uses: actions/checkout@v4
+ - uses: actions/setup-dotnet@v4
+ with:
+ dotnet-version: |
+ 8.0.x
+ 10.0.x
- run: dotnet --info
+
+ - name: Upgrade script tests
+ if: contains(matrix.runs-on, 'macOS') || contains(matrix.runs-on, 'ubuntu')
+ working-directory: scripts/upgrade-namespaces
+ run: python3 test_rewrite.py
- if: contains(matrix.runs-on, 'macOS') || contains(matrix.runs-on, 'ubuntu')
run: ./build.sh
diff --git a/.gitignore b/.gitignore
index 43c53a29f..78fb2c350 100644
--- a/.gitignore
+++ b/.gitignore
@@ -211,4 +211,8 @@ samples/KeyManagement/FileSystem/signingkeys/
workspace.xml
src/IdentityServer4/host/identityserver.db
-tempkey.jwk
\ No newline at end of file
+tempkey.jwk
+
+# Python (upgrade script tests)
+__pycache__/
+*.py[cod]
diff --git a/NuGet.config b/NuGet.config
index a347cc617..37f2edde1 100644
--- a/NuGet.config
+++ b/NuGet.config
@@ -3,6 +3,6 @@
-
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 6e5570aa1..b40e86fe7 100644
--- a/README.md
+++ b/README.md
@@ -1,69 +1,88 @@
-# Security Vulnerability Found
-IdentityServer4 contains a known Open Redirect vulnerability (CVE-2024-39694) that we do not intend to address in IdentityServer4. Please see [the security advisory](https://github.com/IdentityServer/IdentityServer4/security/advisories/GHSA-55p7-v223-x366) for more details and consider upgrading to [Duende.IdentityServer](www.duendesoftware.com) to receive updates.
+# ForgePoint.Identity
-# Important update
-This project is not maintained anymore. This repo will be archived when .NET Core 3.1 end of support is reached (13th Dec 2022). All new development is happening in the new [Duende Software](https://github.com/duendesoftware) organization.
+ForgePoint.Identity is a free, open source [OpenID Connect](https://openid.net/connect/) and [OAuth 2.0](https://datatracker.ietf.org/doc/html/rfc6749) framework for ASP.NET Core. It is maintained by **ForgePoint Labs** as an Apache-2.0 continuation of the last IdentityServer4 release, upgraded for current .NET and expanded with protocol and hosting features that modern apps expect.
-See [here](https://duendesoftware.com/products/identityserver) for more details.
+It remains licensed under [Apache 2.0](https://opensource.org/licenses/Apache-2.0). This project is not affiliated with or endorsed by Duende Software or the original IdentityServer4 authors.
-## About IdentityServer4
-[ ](https://dotnetfoundation.org/projects?searchquery=IdentityServer&type=project)
+`AddIdentityServer()` stays the same. C# namespaces move from `IdentityServer4.*` to `ForgePoint.Identity.*` — see the [upgrade guide](docs/upgrade.md) and `scripts/upgrade-namespaces`.
-IdentityServer is a free, open source [OpenID Connect](http://openid.net/connect/) and [OAuth 2.0](https://tools.ietf.org/html/rfc6749) framework for ASP.NET Core.
-Founded and maintained by [Dominick Baier](https://twitter.com/leastprivilege) and [Brock Allen](https://twitter.com/brocklallen), IdentityServer4 incorporates all the protocol implementations and extensibility points needed to integrate token-based authentication, single-sign-on and API access control in your applications.
-IdentityServer4 is officially [certified](https://openid.net/certification/) by the [OpenID Foundation](https://openid.net) and thus spec-compliant and interoperable.
-It is part of the [.NET Foundation](https://www.dotnetfoundation.org/), and operates under their [code of conduct](https://www.dotnetfoundation.org/code-of-conduct). It is licensed under [Apache 2](https://opensource.org/licenses/Apache-2.0) (an OSI approved license).
+## What's new in 10.x
-For project documentation, please visit [readthedocs](https://identityserver4.readthedocs.io).
+- **ForgePoint.Identity** package IDs and `ForgePoint.Identity.*` namespaces (was IdentityServer4)
+- Upgrade script for existing apps: `scripts/upgrade-namespaces`
+- **.NET 8 and .NET 10** target frameworks for all libraries
+- **CVE-2024-39694** open-redirect fix in local URL validation
+- **Pushed Authorization Requests** (RFC 9126) at `/connect/par`
+- **Health checks** via `AddHealthChecks().AddIdentityServer()`
+- **`IClock` / `TimeProvider`** instead of the removed ASP.NET `ISystemClock`
+- **Handwritten EF entity/model mappings** instead of AutoMapper (no AutoMapper license required)
+- Package and test dependencies updated for current .NET
-## Branch structure
-Active development happens on the main branch. This always contains the latest version. Each (pre-) release is tagged with the corresponding version. The [aspnetcore1](https://github.com/IdentityServer/IdentityServer4/tree/aspnetcore1) and [aspnetcore2](https://github.com/IdentityServer/IdentityServer4/tree/aspnetcore2) branches contain the latest versions of the older ASP.NET Core based versions.
+Duende IdentityServer is the commercial successor of the original IdentityServer project.
+
+## Packages
+
+| Package | Role |
+| --- | --- |
+| `ForgePoint.Identity` | Protocol implementation and ASP.NET Core host integration |
+| `ForgePoint.Identity.Storage` | Store contracts and models |
+| `ForgePoint.Identity.EntityFramework` | EF Core configuration and operational stores |
+| `ForgePoint.Identity.EntityFramework.Storage` | EF Core entities and stores |
+| `ForgePoint.Identity.AspNetIdentity` | ASP.NET Core Identity integration |
## How to build
-* [Install](https://www.microsoft.com/net/download/core#/current) the latest .NET Core 3.1 SDK
+* Install the [.NET 10 SDK](https://dotnet.microsoft.com/download) (the SDK also builds the `net8.0` TFM)
* Install Git
* Clone this repo
-* Run `build.ps1` or `build.sh` in the root of the cloned repo
+* Run `build.sh` or `build.ps1` from the repository root
-## Documentation
-For project documentation, please visit [readthedocs](https://identityserver4.readthedocs.io).
+The build packs each project into `./nuget` in dependency order: Storage → Identity → EntityFramework.Storage → EntityFramework → AspNetIdentity.
-See [here](http://docs.identityserver.io/en/aspnetcore1/) for the 1.x docs, and [here](http://docs.identityserver.io/en/aspnetcore2/) for the 2.x docs.
+## Quick start
-## Bug reports and feature requests
-Please use the [issue tracker](https://github.com/IdentityServer/IdentityServer4/issues) for that. We only support the latest version for free. For older versions, you can get a commercial support agreement with us.
+```csharp
+builder.Services.AddIdentityServer(options =>
+ {
+ options.Events.RaiseSuccessEvents = true;
+ options.Events.RaiseFailureEvents = true;
+ options.Events.RaiseErrorEvents = true;
+ options.PushedAuthorization.Required = false; // set true to require PAR globally
+ })
+ .AddInMemoryClients(Clients.Get())
+ .AddInMemoryIdentityResources(Resources.IdentityResources)
+ .AddInMemoryApiScopes(Resources.ApiScopes)
+ .AddDeveloperSigningCredential();
-## Commercial and Community Support
-If you need help with implementing IdentityServer4 or your security architecture in general, there are both free and commercial support options.
-See [here](https://identityserver4.readthedocs.io/en/latest/intro/support.html) for more details.
+builder.Services.AddHealthChecks()
+ .AddIdentityServer();
-## Sponsorship
-If you are a fan of the project or a company that relies on IdentityServer, you might want to consider sponsoring.
-This will help us devote more time to answering questions and doing feature development. If you are interested please head to our [Patreon](https://www.patreon.com/identityserver) page which has further details.
+app.UseIdentityServer();
+app.MapHealthChecks("/health");
+```
-### Platinum Sponsors
-[ ](https://udelt.no)
+Enable PAR per client with `Client.RequirePushedAuthorization = true`, or for every client with `options.PushedAuthorization.Required = true`.
-[ ](https://github.com/dotnet-at-microsoft)
+Existing IdentityServer4 4.x configuration databases need one additive column:
-### Corporate Sponsors
-[Ritter Insurance Marketing](https://www.ritterim.com)
-[ExtraNetUserManager](https://www.extranetusermanager.com/)
-[Knab](https://www.knab.nl/)
+```sql
+ALTER TABLE [Clients] ADD [RequirePushedAuthorization] bit NOT NULL DEFAULT 0;
+```
+
+A script is included at `docs/migrations/add-require-pushed-authorization.sql`.
+
+## Documentation
-You can see a list of our current sponsors [here](https://github.com/IdentityServer/IdentityServer4/blob/main/SPONSORS.md) - and for companies we have some nice advertisement options as well.
+Upgrade from IdentityServer4: [docs/upgrade.md](docs/upgrade.md).
+
+Historical IdentityServer4 docs: [https://identityserver4.readthedocs.io](https://identityserver4.readthedocs.io).
+
+PAR is described in [RFC 9126](https://www.rfc-editor.org/rfc/rfc9126). The discovery document advertises `pushed_authorization_request_endpoint` when the endpoint is enabled.
+
+## Security
+
+See [SECURITY.MD](SECURITY.MD). IdentityServer4 4.1.2 and earlier are affected by [CVE-2024-39694](https://github.com/IdentityServer/IdentityServer4/security/advisories/GHSA-55p7-v223-x366). This 10.x line includes the local-URL validation fix.
## Acknowledgements
-IdentityServer4 is built using the following great open source projects and free services:
-
-* [ASP.NET Core](https://github.com/dotnet/aspnetcore)
-* [Bullseye](https://github.com/adamralph/bullseye)
-* [SimpleExec](https://github.com/adamralph/simple-exec)
-* [MinVer](https://github.com/adamralph/minver)
-* [Json.Net](http://www.newtonsoft.com/json)
-* [XUnit](https://xunit.github.io/)
-* [Fluent Assertions](http://www.fluentassertions.com/)
-* [GitReleaseManager](https://github.com/GitTools/GitReleaseManager)
-
-..and last but not least a big thanks to all our [contributors](https://github.com/IdentityServer/IdentityServer4/graphs/contributors)!
+
+ForgePoint.Identity is built using ASP.NET Core, IdentityModel, Newtonsoft.Json, xUnit, Fluent Assertions, MinVer, Bullseye, and SimpleExec — and the work of [every contributor](https://github.com/IdentityServer/IdentityServer4/graphs/contributors) to the original IdentityServer4 project.
diff --git a/SECURITY.MD b/SECURITY.MD
index 8c8c1deae..903c4a3a1 100644
--- a/SECURITY.MD
+++ b/SECURITY.MD
@@ -1,7 +1,7 @@
# Reporting Security Issues
-If you discover a security issue in IdentityServer, please report it by sending an email to contact@identityserver.io
+If you discover a security issue in ForgePoint.Identity, please open a private GitHub security advisory on the repository.
-This will allow us to assess the risk, and make a fix available before we add a bug report to the GitHub repository.
+This 10.x line includes a fix for CVE-2024-39694 (open redirect via crafted local URLs). IdentityServer4 4.1.2 and earlier remain affected.
-Thanks!
+Do not file public issues for unreleased vulnerabilities until a fix is available.
diff --git a/build.ps1 b/build.ps1
index ca4846c02..0e5f6427c 100644
--- a/build.ps1
+++ b/build.ps1
@@ -1,6 +1,14 @@
$ErrorActionPreference = "Stop";
-New-Item -ItemType Directory -Force -Path ./nuget
+if (Test-Path ./nuget) {
+ Remove-Item ./nuget -Recurse -Force
+}
+New-Item -ItemType Directory -Force -Path ./nuget | Out-Null
+
+$nugetPackages = if ($env:NUGET_PACKAGES) { $env:NUGET_PACKAGES } else { Join-Path $env:USERPROFILE ".nuget\packages" }
+Get-ChildItem -Path $nugetPackages -Directory -ErrorAction SilentlyContinue |
+ Where-Object { $_.Name -like "forgepoint.identity*" } |
+ Remove-Item -Recurse -Force
dotnet tool restore
diff --git a/build.sh b/build.sh
index 512900faa..16b8d3e87 100755
--- a/build.sh
+++ b/build.sh
@@ -4,6 +4,11 @@ set -euo pipefail
rm -rf nuget
mkdir nuget
+# Same-height MinVer packs reuse the global cache. Drop local ForgePoint.Identity
+# packages so restore picks up the nupkgs just written to ./nuget.
+nuget_packages="${NUGET_PACKAGES:-$HOME/.nuget/packages}"
+rm -rf "$nuget_packages"/forgepoint.identity*
+
dotnet tool restore
pushd ./src/Storage
diff --git a/docs/migrations/add-require-pushed-authorization.sql b/docs/migrations/add-require-pushed-authorization.sql
new file mode 100644
index 000000000..17d38a373
--- /dev/null
+++ b/docs/migrations/add-require-pushed-authorization.sql
@@ -0,0 +1,13 @@
+-- Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
+-- Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
+
+-- Additive schema change for IdentityServer4 10: RFC 9126 PAR client flag.
+-- Safe to run against existing IdentityServer4 4.x databases.
+
+IF COL_LENGTH('dbo.Clients', 'RequirePushedAuthorization') IS NULL
+BEGIN
+ ALTER TABLE [dbo].[Clients]
+ ADD [RequirePushedAuthorization] bit NOT NULL
+ CONSTRAINT [DF_Clients_RequirePushedAuthorization] DEFAULT (0);
+END
+GO
diff --git a/docs/readme.md b/docs/readme.md
index 8590c8d5a..d268ac42b 100644
--- a/docs/readme.md
+++ b/docs/readme.md
@@ -1,4 +1,6 @@
-# IdentityServer4 documentation
+# ForgePoint.Identity documentation
+
+Historical IdentityServer4 documentation lives in this folder and on [Read the Docs](https://identityserver4.readthedocs.io). ForgePoint.Identity keeps those APIs; new protocol features such as PAR are described in the repository README.
The folder contains the documentation for identityserver4.
diff --git a/docs/upgrade.md b/docs/upgrade.md
new file mode 100644
index 000000000..0c207491c
--- /dev/null
+++ b/docs/upgrade.md
@@ -0,0 +1,99 @@
+# Upgrade from IdentityServer4 to ForgePoint.Identity
+
+ForgePoint.Identity is a ForgePoint Labs Apache-2.0 continuation of IdentityServer4. APIs such as `AddIdentityServer()`, `IdentityServerOptions`, and `IdentityServerConstants` keep their type names. Package IDs and C# namespaces change.
+
+This project is not affiliated with or endorsed by Duende Software or the original IdentityServer4 authors.
+
+## 1. Swap NuGet packages
+
+| IdentityServer4 | ForgePoint.Identity |
+| --- | --- |
+| `IdentityServer4` | `ForgePoint.Identity` |
+| `IdentityServer4.Storage` | `ForgePoint.Identity.Storage` |
+| `IdentityServer4.EntityFramework` | `ForgePoint.Identity.EntityFramework` |
+| `IdentityServer4.EntityFramework.Storage` | `ForgePoint.Identity.EntityFramework.Storage` |
+| `IdentityServer4.AspNetIdentity` | `ForgePoint.Identity.AspNetIdentity` |
+
+```xml
+
+```
+
+If you previously restored a local 10.x build of these packages, delete the matching folders under `~/.nuget/packages` (they are lowercase, for example `forgepoint.identity`) so restore does not reuse an older nupkg with the same MinVer version.
+
+## 2. Rewrite namespaces
+
+| IdentityServer4 | ForgePoint.Identity |
+| --- | --- |
+| `IdentityServer4` | `ForgePoint.Identity` |
+| `IdentityServer4.Models` | `ForgePoint.Identity.Models` |
+| `IdentityServer4.Stores` | `ForgePoint.Identity.Stores` |
+| `IdentityServer4.EntityFramework` | `ForgePoint.Identity.EntityFramework` |
+| `IdentityServer4.AspNetIdentity` | `ForgePoint.Identity.AspNetIdentity` |
+
+```csharp
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
+
+builder.Services.AddIdentityServer()
+ .AddInMemoryClients(clients)
+ .AddDeveloperSigningCredential();
+
+app.UseIdentityServer();
+```
+
+`AddIdentityServer()`, `UseIdentityServer()`, and `AddHealthChecks().AddIdentityServer()` stay the same and still live in `Microsoft.Extensions.DependencyInjection`.
+
+## 3. Run the upgrade script
+
+From a clone of this repository (or copy `scripts/upgrade-namespaces` into your app):
+
+```bash
+python3 scripts/upgrade-namespaces/rewrite.py /path/to/your/app --all --dry-run
+python3 scripts/upgrade-namespaces/rewrite.py /path/to/your/app --all
+```
+
+or
+
+```bash
+./scripts/upgrade-namespaces/upgrade.sh /path/to/your/app
+```
+
+```powershell
+./scripts/upgrade-namespaces/upgrade.ps1 -Path C:\path\to\your\app
+```
+
+`--all` updates:
+
+- `.cs`, `.cshtml`, `.razor` namespace and `using` directives
+- `.csproj` / `.props` / `.targets` `PackageReference`, `PackageVersion`, and `PackageId` values
+- EF Core snapshots and migrations that store CLR type names as `IdentityServer4.EntityFramework.Entities.*`
+
+The script does **not** rename:
+
+- `AddIdentityServer`, `UseIdentityServer`, `IdentityServerOptions`, `IdentityServerConstants`
+- `AssemblyName`, `RootNamespace`, `ProjectReference` paths, or `PackageTags`
+- `InternalsVisibleTo("IdentityServer4...")` friend-test assemblies
+
+Review the diff, then build.
+
+This script is for consuming apps. Do not run `--packages` against this repository: on-disk project file names stay `IdentityServer4*.csproj` even though the NuGet package ids are `ForgePoint.Identity*`.
+
+## 4. Entity Framework
+
+Table names (`Clients`, `PersistedGrants`, and so on) do not change. Existing databases do not need a schema migration for the namespace rename.
+
+Do run the script over your `Migrations` folder so snapshots use `ForgePoint.Identity.EntityFramework.Entities.*`. After that, do **not** add a new EF migration just for the rename — that would generate a noisy no-op or a false table rebuild.
+
+IdentityServer4 4.x databases still need the PAR column if you use pushed authorization:
+
+```sql
+ALTER TABLE [Clients] ADD [RequirePushedAuthorization] bit NOT NULL DEFAULT 0;
+```
+
+See `docs/migrations/add-require-pushed-authorization.sql`.
+
+## 5. What you should still do by hand
+
+- Authentication scheme strings such as `"IdentityServerAccessToken"` are unchanged
+- Signing keys, connection strings, and client configuration stay as they are
+- Host UI text that says “IdentityServer4” is cosmetic; the sample hosts in this repo already say ForgePoint.Identity
diff --git a/global.json b/global.json
index 70db89729..5269c28a5 100644
--- a/global.json
+++ b/global.json
@@ -1,5 +1,7 @@
{
"sdk": {
- "version": "3.1.402"
+ "version": "10.0.400",
+ "rollForward": "latestFeature",
+ "allowPrerelease": false
}
-}
\ No newline at end of file
+}
diff --git a/samples/Clients/Directory.Build.targets b/samples/Clients/Directory.Build.targets
index 4eafc7731..6bde76de1 100644
--- a/samples/Clients/Directory.Build.targets
+++ b/samples/Clients/Directory.Build.targets
@@ -1,17 +1,17 @@
- 3.1.0
+ 10.0.11
-
+
-
+
-
\ No newline at end of file
+
diff --git a/samples/Clients/old/MvcHybrid/MvcHybrid.csproj b/samples/Clients/old/MvcHybrid/MvcHybrid.csproj
index ff325c1aa..8a3cbca90 100644
--- a/samples/Clients/old/MvcHybrid/MvcHybrid.csproj
+++ b/samples/Clients/old/MvcHybrid/MvcHybrid.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/old/MvcHybridAutomaticRefresh/MvcHybridAutomaticRefresh.csproj b/samples/Clients/old/MvcHybridAutomaticRefresh/MvcHybridAutomaticRefresh.csproj
index 8bb5342bf..b40fcadcb 100644
--- a/samples/Clients/old/MvcHybridAutomaticRefresh/MvcHybridAutomaticRefresh.csproj
+++ b/samples/Clients/old/MvcHybridAutomaticRefresh/MvcHybridAutomaticRefresh.csproj
@@ -1,7 +1,7 @@
- netcoreapp2.1
+ net10.0
diff --git a/samples/Clients/old/MvcImplicit/MvcImplicit.csproj b/samples/Clients/old/MvcImplicit/MvcImplicit.csproj
index a6270433d..ea4ce7800 100644
--- a/samples/Clients/old/MvcImplicit/MvcImplicit.csproj
+++ b/samples/Clients/old/MvcImplicit/MvcImplicit.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/old/MvcImplicitJwtRequest/MvcImplicitJwtRequest.csproj b/samples/Clients/old/MvcImplicitJwtRequest/MvcImplicitJwtRequest.csproj
index b2ddfdaa3..7d0577ec5 100644
--- a/samples/Clients/old/MvcImplicitJwtRequest/MvcImplicitJwtRequest.csproj
+++ b/samples/Clients/old/MvcImplicitJwtRequest/MvcImplicitJwtRequest.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/old/MvcManual/MvcManual.csproj b/samples/Clients/old/MvcManual/MvcManual.csproj
index 8c5d9381e..cde7d8455 100644
--- a/samples/Clients/old/MvcManual/MvcManual.csproj
+++ b/samples/Clients/old/MvcManual/MvcManual.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/readme.md b/samples/Clients/readme.md
index 9af1e703c..b1deaed0c 100644
--- a/samples/Clients/readme.md
+++ b/samples/Clients/readme.md
@@ -1,3 +1,3 @@
The client samples are designed to be used with the host in this repo:
-https://github.com/IdentityServer/IdentityServer4/tree/main/src/IdentityServer4
+https://github.com/joneja09/IdentityServer4/tree/main/src/IdentityServer4
diff --git a/samples/Clients/src/APIs/ResourceBasedApi/ResourceBasedApi.csproj b/samples/Clients/src/APIs/ResourceBasedApi/ResourceBasedApi.csproj
index ac693c034..63fb3d0f8 100644
--- a/samples/Clients/src/APIs/ResourceBasedApi/ResourceBasedApi.csproj
+++ b/samples/Clients/src/APIs/ResourceBasedApi/ResourceBasedApi.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/src/APIs/SimpleApi/SimpleApi.csproj b/samples/Clients/src/APIs/SimpleApi/SimpleApi.csproj
index c5e00c143..d7c065c32 100644
--- a/samples/Clients/src/APIs/SimpleApi/SimpleApi.csproj
+++ b/samples/Clients/src/APIs/SimpleApi/SimpleApi.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/src/ConsoleClientCredentialsFlow/ConsoleClientCredentialsFlow.csproj b/samples/Clients/src/ConsoleClientCredentialsFlow/ConsoleClientCredentialsFlow.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleClientCredentialsFlow/ConsoleClientCredentialsFlow.csproj
+++ b/samples/Clients/src/ConsoleClientCredentialsFlow/ConsoleClientCredentialsFlow.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleClientCredentialsFlowCallingIdentityServerApi/ConsoleClientCredentialsFlowCallingIdentityServerApi.csproj b/samples/Clients/src/ConsoleClientCredentialsFlowCallingIdentityServerApi/ConsoleClientCredentialsFlowCallingIdentityServerApi.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleClientCredentialsFlowCallingIdentityServerApi/ConsoleClientCredentialsFlowCallingIdentityServerApi.csproj
+++ b/samples/Clients/src/ConsoleClientCredentialsFlowCallingIdentityServerApi/ConsoleClientCredentialsFlowCallingIdentityServerApi.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleClientCredentialsFlowPostBody/ConsoleClientCredentialsFlowPostBody.csproj b/samples/Clients/src/ConsoleClientCredentialsFlowPostBody/ConsoleClientCredentialsFlowPostBody.csproj
index 37e808090..059e5f762 100644
--- a/samples/Clients/src/ConsoleClientCredentialsFlowPostBody/ConsoleClientCredentialsFlowPostBody.csproj
+++ b/samples/Clients/src/ConsoleClientCredentialsFlowPostBody/ConsoleClientCredentialsFlowPostBody.csproj
@@ -1,6 +1,6 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleCode/ConsoleCode.csproj b/samples/Clients/src/ConsoleCode/ConsoleCode.csproj
index 9fe235fd8..a950c16e6 100644
--- a/samples/Clients/src/ConsoleCode/ConsoleCode.csproj
+++ b/samples/Clients/src/ConsoleCode/ConsoleCode.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
ConsoleHybridWithPkce
diff --git a/samples/Clients/src/ConsoleCustomGrant/ConsoleExtensionGrant.csproj b/samples/Clients/src/ConsoleCustomGrant/ConsoleExtensionGrant.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleCustomGrant/ConsoleExtensionGrant.csproj
+++ b/samples/Clients/src/ConsoleCustomGrant/ConsoleExtensionGrant.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleDeviceFlow/ConsoleDeviceFlow.csproj b/samples/Clients/src/ConsoleDeviceFlow/ConsoleDeviceFlow.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleDeviceFlow/ConsoleDeviceFlow.csproj
+++ b/samples/Clients/src/ConsoleDeviceFlow/ConsoleDeviceFlow.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleEphemeralMtlsClient/ConsoleEphemeralMtlsClient.csproj b/samples/Clients/src/ConsoleEphemeralMtlsClient/ConsoleEphemeralMtlsClient.csproj
index 6d25d5464..c16673dd1 100644
--- a/samples/Clients/src/ConsoleEphemeralMtlsClient/ConsoleEphemeralMtlsClient.csproj
+++ b/samples/Clients/src/ConsoleEphemeralMtlsClient/ConsoleEphemeralMtlsClient.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/src/ConsoleIntrospectionClient/ConsoleIntrospectionClient.csproj b/samples/Clients/src/ConsoleIntrospectionClient/ConsoleIntrospectionClient.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleIntrospectionClient/ConsoleIntrospectionClient.csproj
+++ b/samples/Clients/src/ConsoleIntrospectionClient/ConsoleIntrospectionClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleMTLSClient/ConsoleMTLSClient.csproj b/samples/Clients/src/ConsoleMTLSClient/ConsoleMTLSClient.csproj
index a49c13624..fc8593cbb 100644
--- a/samples/Clients/src/ConsoleMTLSClient/ConsoleMTLSClient.csproj
+++ b/samples/Clients/src/ConsoleMTLSClient/ConsoleMTLSClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleParameterizedScopeClient/ConsoleParameterizedScopeClient.csproj b/samples/Clients/src/ConsoleParameterizedScopeClient/ConsoleParameterizedScopeClient.csproj
index ed9a693e5..44aac9631 100644
--- a/samples/Clients/src/ConsoleParameterizedScopeClient/ConsoleParameterizedScopeClient.csproj
+++ b/samples/Clients/src/ConsoleParameterizedScopeClient/ConsoleParameterizedScopeClient.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net10.0
ConsoleStructuredScopeClient
diff --git a/samples/Clients/src/ConsolePrivateKeyJwtClient/ConsolePrivateKeyJwtClient.csproj b/samples/Clients/src/ConsolePrivateKeyJwtClient/ConsolePrivateKeyJwtClient.csproj
index f0e8febe9..c303ce63b 100644
--- a/samples/Clients/src/ConsolePrivateKeyJwtClient/ConsolePrivateKeyJwtClient.csproj
+++ b/samples/Clients/src/ConsolePrivateKeyJwtClient/ConsolePrivateKeyJwtClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleResourceOwnerFlow/ConsoleResourceOwnerFlow.csproj b/samples/Clients/src/ConsoleResourceOwnerFlow/ConsoleResourceOwnerFlow.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleResourceOwnerFlow/ConsoleResourceOwnerFlow.csproj
+++ b/samples/Clients/src/ConsoleResourceOwnerFlow/ConsoleResourceOwnerFlow.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleResourceOwnerFlowPublic/ConsoleResourceOwnerFlowPublic.csproj b/samples/Clients/src/ConsoleResourceOwnerFlowPublic/ConsoleResourceOwnerFlowPublic.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleResourceOwnerFlowPublic/ConsoleResourceOwnerFlowPublic.csproj
+++ b/samples/Clients/src/ConsoleResourceOwnerFlowPublic/ConsoleResourceOwnerFlowPublic.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleResourceOwnerFlowReference/ConsoleResourceOwnerFlowReference.csproj b/samples/Clients/src/ConsoleResourceOwnerFlowReference/ConsoleResourceOwnerFlowReference.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleResourceOwnerFlowReference/ConsoleResourceOwnerFlowReference.csproj
+++ b/samples/Clients/src/ConsoleResourceOwnerFlowReference/ConsoleResourceOwnerFlowReference.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleResourceOwnerFlowRefreshToken/ConsoleResourceOwnerFlowRefreshToken.csproj b/samples/Clients/src/ConsoleResourceOwnerFlowRefreshToken/ConsoleResourceOwnerFlowRefreshToken.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleResourceOwnerFlowRefreshToken/ConsoleResourceOwnerFlowRefreshToken.csproj
+++ b/samples/Clients/src/ConsoleResourceOwnerFlowRefreshToken/ConsoleResourceOwnerFlowRefreshToken.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/ConsoleResourceOwnerFlowUserInfo/ConsoleResourceOwnerFlowUserInfo.csproj b/samples/Clients/src/ConsoleResourceOwnerFlowUserInfo/ConsoleResourceOwnerFlowUserInfo.csproj
index 96f882664..0d35ceb92 100644
--- a/samples/Clients/src/ConsoleResourceOwnerFlowUserInfo/ConsoleResourceOwnerFlowUserInfo.csproj
+++ b/samples/Clients/src/ConsoleResourceOwnerFlowUserInfo/ConsoleResourceOwnerFlowUserInfo.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Clients/src/Constants/Constants.csproj b/samples/Clients/src/Constants/Constants.csproj
index 0b6bb9964..2ca4caf41 100644
--- a/samples/Clients/src/Constants/Constants.csproj
+++ b/samples/Clients/src/Constants/Constants.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ net10.0
diff --git a/samples/Clients/src/JsOidc/JsOidc.csproj b/samples/Clients/src/JsOidc/JsOidc.csproj
index ddeb61566..a2303458d 100644
--- a/samples/Clients/src/JsOidc/JsOidc.csproj
+++ b/samples/Clients/src/JsOidc/JsOidc.csproj
@@ -1,6 +1,6 @@
- netcoreapp3.1
+ net10.0
\ No newline at end of file
diff --git a/samples/Clients/src/MvcAutomaticTokenManagement/MvcAutomaticTokenManagement.csproj b/samples/Clients/src/MvcAutomaticTokenManagement/MvcAutomaticTokenManagement.csproj
index a99418ded..c918fe7cb 100644
--- a/samples/Clients/src/MvcAutomaticTokenManagement/MvcAutomaticTokenManagement.csproj
+++ b/samples/Clients/src/MvcAutomaticTokenManagement/MvcAutomaticTokenManagement.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/src/MvcCode/MvcCode.csproj b/samples/Clients/src/MvcCode/MvcCode.csproj
index 906055867..21497c9b1 100644
--- a/samples/Clients/src/MvcCode/MvcCode.csproj
+++ b/samples/Clients/src/MvcCode/MvcCode.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Clients/src/MvcHybridBackChannel/MvcHybridBackChannel.csproj b/samples/Clients/src/MvcHybridBackChannel/MvcHybridBackChannel.csproj
index a6270433d..ea4ce7800 100644
--- a/samples/Clients/src/MvcHybridBackChannel/MvcHybridBackChannel.csproj
+++ b/samples/Clients/src/MvcHybridBackChannel/MvcHybridBackChannel.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/KeyManagement/FileSystem/Config.cs b/samples/KeyManagement/FileSystem/Config.cs
index 1b7a4c75c..bad157f93 100644
--- a/samples/KeyManagement/FileSystem/Config.cs
+++ b/samples/KeyManagement/FileSystem/Config.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace sample
diff --git a/samples/KeyManagement/FileSystem/FileSystemSample.csproj b/samples/KeyManagement/FileSystem/FileSystemSample.csproj
index 05a7eebd1..3717ea4e4 100644
--- a/samples/KeyManagement/FileSystem/FileSystemSample.csproj
+++ b/samples/KeyManagement/FileSystem/FileSystemSample.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/KeyManagement/FileSystem/Program.cs b/samples/KeyManagement/FileSystem/Program.cs
index 454300365..df8677ff4 100644
--- a/samples/KeyManagement/FileSystem/Program.cs
+++ b/samples/KeyManagement/FileSystem/Program.cs
@@ -15,7 +15,7 @@ public class Program
{
public static void Main(string[] args)
{
- Console.Title = "IdentityServer4";
+ Console.Title = "ForgePoint.Identity";
CreateWebHostBuilder(args).Build().Run();
}
diff --git a/samples/KeyManagement/FileSystem/Startup.cs b/samples/KeyManagement/FileSystem/Startup.cs
index 78cd0e5ee..fa954be9e 100644
--- a/samples/KeyManagement/FileSystem/Startup.cs
+++ b/samples/KeyManagement/FileSystem/Startup.cs
@@ -41,7 +41,7 @@ public void ConfigureServices(IServiceCollection services)
options => // configuring options is optional :)
{
options.DeleteRetiredKeys = true;
- options.KeyType = IdentityServer4.KeyManagement.KeyType.RSA;
+ options.KeyType = ForgePoint.Identity.KeyManagement.KeyType.RSA;
// all of these values in here are changed for local testing
options.InitializationDuration = TimeSpan.FromSeconds(5);
diff --git a/samples/KeyManagement/database/EF/Config.cs b/samples/KeyManagement/database/EF/Config.cs
index 1b7a4c75c..bad157f93 100644
--- a/samples/KeyManagement/database/EF/Config.cs
+++ b/samples/KeyManagement/database/EF/Config.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace sample
diff --git a/samples/KeyManagement/database/EF/EfSample.csproj b/samples/KeyManagement/database/EF/EfSample.csproj
index 4064271f5..b5836c378 100644
--- a/samples/KeyManagement/database/EF/EfSample.csproj
+++ b/samples/KeyManagement/database/EF/EfSample.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/KeyManagement/database/EF/Program.cs b/samples/KeyManagement/database/EF/Program.cs
index e01ccf8a7..5c52b389f 100644
--- a/samples/KeyManagement/database/EF/Program.cs
+++ b/samples/KeyManagement/database/EF/Program.cs
@@ -15,7 +15,7 @@ public class Program
{
public static void Main(string[] args)
{
- Console.Title = "IdentityServer4";
+ Console.Title = "ForgePoint.Identity";
CreateWebHostBuilder(args).Build().Run();
}
diff --git a/samples/KeyManagement/database/EF/Startup.cs b/samples/KeyManagement/database/EF/Startup.cs
index 22bbcd3bd..9d29238d0 100644
--- a/samples/KeyManagement/database/EF/Startup.cs
+++ b/samples/KeyManagement/database/EF/Startup.cs
@@ -5,7 +5,7 @@
using System;
using System.Linq;
using IdentityModel;
-using IdentityServer4.KeyManagement.EntityFramework;
+using ForgePoint.Identity.KeyManagement.EntityFramework;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
using Microsoft.AspNetCore.Hosting;
@@ -53,7 +53,7 @@ public void ConfigureServices(IServiceCollection services)
options => // configuring options is optional :)
{
options.DeleteRetiredKeys = true;
- options.KeyType = IdentityServer4.KeyManagement.KeyType.RSA;
+ options.KeyType = ForgePoint.Identity.KeyManagement.KeyType.RSA;
// all of these values in here are changed for local testing
options.InitializationDuration = TimeSpan.FromSeconds(5);
diff --git a/samples/KeyManagement/database/migrations/Migrations/KeyManagement/20200327143521_KeyManagement.Designer.cs b/samples/KeyManagement/database/migrations/Migrations/KeyManagement/20200327143521_KeyManagement.Designer.cs
index ebd569618..4d75f62ea 100644
--- a/samples/KeyManagement/database/migrations/Migrations/KeyManagement/20200327143521_KeyManagement.Designer.cs
+++ b/samples/KeyManagement/database/migrations/Migrations/KeyManagement/20200327143521_KeyManagement.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.KeyManagement.EntityFramework;
+using ForgePoint.Identity.KeyManagement.EntityFramework;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -21,7 +21,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.KeyManagement.EntityFramework.DataProtectionKey", b =>
+ modelBuilder.Entity("ForgePoint.Identity.KeyManagement.EntityFramework.DataProtectionKey", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -48,7 +48,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("DataProtectionKeys");
});
- modelBuilder.Entity("IdentityServer4.KeyManagement.EntityFramework.SigningKey", b =>
+ modelBuilder.Entity("ForgePoint.Identity.KeyManagement.EntityFramework.SigningKey", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
diff --git a/samples/KeyManagement/database/migrations/Migrations/KeyManagement/KeyManagementDbContextModelSnapshot.cs b/samples/KeyManagement/database/migrations/Migrations/KeyManagement/KeyManagementDbContextModelSnapshot.cs
index a8ff2a820..f90d7ad25 100644
--- a/samples/KeyManagement/database/migrations/Migrations/KeyManagement/KeyManagementDbContextModelSnapshot.cs
+++ b/samples/KeyManagement/database/migrations/Migrations/KeyManagement/KeyManagementDbContextModelSnapshot.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.KeyManagement.EntityFramework;
+using ForgePoint.Identity.KeyManagement.EntityFramework;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.KeyManagement.EntityFramework.DataProtectionKey", b =>
+ modelBuilder.Entity("ForgePoint.Identity.KeyManagement.EntityFramework.DataProtectionKey", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -46,7 +46,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("DataProtectionKeys");
});
- modelBuilder.Entity("IdentityServer4.KeyManagement.EntityFramework.SigningKey", b =>
+ modelBuilder.Entity("ForgePoint.Identity.KeyManagement.EntityFramework.SigningKey", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
diff --git a/samples/KeyManagement/database/migrations/Startup.cs b/samples/KeyManagement/database/migrations/Startup.cs
index 6dd60c67a..23d300108 100644
--- a/samples/KeyManagement/database/migrations/Startup.cs
+++ b/samples/KeyManagement/database/migrations/Startup.cs
@@ -1,4 +1,4 @@
-using IdentityServer4.KeyManagement.EntityFramework;
+using ForgePoint.Identity.KeyManagement.EntityFramework;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
diff --git a/samples/KeyManagement/database/migrations/migrations.csproj b/samples/KeyManagement/database/migrations/migrations.csproj
index 2d2f7f408..6bb999ae0 100644
--- a/samples/KeyManagement/database/migrations/migrations.csproj
+++ b/samples/KeyManagement/database/migrations/migrations.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/1_ClientCredentials/src/Api/Api.csproj b/samples/Quickstarts/1_ClientCredentials/src/Api/Api.csproj
index 23c961295..0c78778c3 100644
--- a/samples/Quickstarts/1_ClientCredentials/src/Api/Api.csproj
+++ b/samples/Quickstarts/1_ClientCredentials/src/Api/Api.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/1_ClientCredentials/src/Client/Client.csproj b/samples/Quickstarts/1_ClientCredentials/src/Client/Client.csproj
index bb4d00cad..fb4cfb5f7 100644
--- a/samples/Quickstarts/1_ClientCredentials/src/Client/Client.csproj
+++ b/samples/Quickstarts/1_ClientCredentials/src/Client/Client.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/Config.cs b/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/Config.cs
index 3e7f9c06c..083bb5ce8 100644
--- a/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/Config.cs
+++ b/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/Config.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace IdentityServer
diff --git a/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/IdentityServer.csproj b/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/IdentityServer.csproj
index 2c24f15b1..fa8841478 100644
--- a/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/IdentityServer.csproj
+++ b/samples/Quickstarts/1_ClientCredentials/src/IdentityServer/IdentityServer.csproj
@@ -1,11 +1,11 @@
- netcoreapp3.1
+ net10.0
-
+
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/Api/Api.csproj b/samples/Quickstarts/2_InteractiveAspNetCore/src/Api/Api.csproj
index 23c961295..0c78778c3 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/Api/Api.csproj
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/Api/Api.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/Client/Client.csproj b/samples/Quickstarts/2_InteractiveAspNetCore/src/Client/Client.csproj
index bb4d00cad..fb4cfb5f7 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/Client/Client.csproj
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/Client/Client.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Config.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Config.cs
index 8274c1899..32e1efbee 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Config.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Config.cs
@@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
-using IdentityServer4.Models;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace IdentityServer
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/IdentityServer.csproj b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/IdentityServer.csproj
index a9a0f20af..ecf71fde3 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/IdentityServer.csproj
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/IdentityServer.csproj
@@ -1,11 +1,11 @@
- netcoreapp3.1
+ net10.0
-
+
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/AccountController.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/AccountController.cs
index 2d51c3cd0..603872753 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/AccountController.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/AccountController.cs
@@ -3,13 +3,13 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
@@ -242,7 +242,7 @@ private async Task BuildLoginViewModelAsync(string returnUrl)
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null && await _schemeProvider.GetSchemeAsync(context.IdP) != null)
{
- var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;
+ var local = context.IdP == ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider;
// this is meant to short circuit the UI and only trigger the one external IdP
var vm = new LoginViewModel
@@ -344,7 +344,7 @@ private async Task BuildLoggedOutViewModelAsync(string logou
if (User?.Identity.IsAuthenticated == true)
{
var idp = User.FindFirst(JwtClaimTypes.IdentityProvider)?.Value;
- if (idp != null && idp != IdentityServer4.IdentityServerConstants.LocalIdentityProvider)
+ if (idp != null && idp != ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider)
{
var providerSupportsSignout = await HttpContext.GetSchemeSupportsSignOutAsync(idp);
if (providerSupportsSignout)
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/ExternalController.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/ExternalController.cs
index 1a7479ea1..00c199652 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/ExternalController.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Account/ExternalController.cs
@@ -1,9 +1,9 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ConsentController.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ConsentController.cs
index 6c3aa44c7..d778e8fb5 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ConsentController.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ConsentController.cs
@@ -2,16 +2,16 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Events;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Validation;
using System.Collections.Generic;
using System;
@@ -120,7 +120,7 @@ private async Task ProcessConsent(ConsentInputModel model)
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -208,7 +208,7 @@ private ConsentViewModel CreateConsentViewModel(
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -251,7 +251,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
index 1d331df04..64ba8c794 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Device/DeviceController.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Device/DeviceController.cs
index d7d07aeb9..9ed5ed0f4 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Device/DeviceController.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Device/DeviceController.cs
@@ -6,12 +6,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Configuration;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Configuration;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Validation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
@@ -102,7 +102,7 @@ private async Task ProcessConsent(DeviceAuthorizationInput
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -184,7 +184,7 @@ private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, Dev
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -221,7 +221,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Extensions.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Extensions.cs
index 6c720b707..60a6ce2bf 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Extensions.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Extensions.cs
@@ -1,5 +1,5 @@
using System;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Mvc;
namespace IdentityServerHost.Quickstart.UI
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Grants/GrantsController.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Grants/GrantsController.cs
index 128ce5921..195a730de 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Grants/GrantsController.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Grants/GrantsController.cs
@@ -2,15 +2,15 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
index a29a21a94..46b8b7af1 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/HomeController.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/HomeController.cs
index 9cf067895..028af424e 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/HomeController.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/Home/HomeController.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
+using ForgePoint.Identity.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/TestUsers.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/TestUsers.cs
index 2acb95405..9f7392e09 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/TestUsers.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Quickstart/TestUsers.cs
@@ -3,11 +3,11 @@
using IdentityModel;
-using IdentityServer4.Test;
+using ForgePoint.Identity.Test;
using System.Collections.Generic;
using System.Security.Claims;
using System.Text.Json;
-using IdentityServer4;
+using ForgePoint.Identity;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Startup.cs b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Startup.cs
index 73b7c59cd..4be753c97 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Startup.cs
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Startup.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
+using ForgePoint.Identity;
using IdentityServerHost.Quickstart.UI;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Home/Index.cshtml b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Home/Index.cshtml
index 36b2bfc3a..1521e3ca5 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Home/Index.cshtml
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Home/Index.cshtml
@@ -1,13 +1,13 @@
@using System.Diagnostics
@{
- var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
+ var version = FileVersionInfo.GetVersionInfo(typeof(ForgePoint.Identity.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
}
- Welcome to IdentityServer4
+ Welcome to ForgePoint.Identity
(version @version)
@@ -25,8 +25,8 @@
Here are links to the
- source code repository ,
- and ready to use samples .
+ source code repository ,
+ and ready to use samples .
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Layout.cshtml b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Layout.cshtml
index 35605f440..402036f0e 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Layout.cshtml
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Layout.cshtml
@@ -5,7 +5,7 @@
- IdentityServer4
+ ForgePoint.Identity
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Nav.cshtml b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Nav.cshtml
index 6ab6b702c..1b3e47536 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Nav.cshtml
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/IdentityServer/Views/Shared/_Nav.cshtml
@@ -1,4 +1,4 @@
-@using IdentityServer4.Extensions
+@using ForgePoint.Identity.Extensions
@{
string name = null;
@@ -13,7 +13,7 @@
- IdentityServer4
+ ForgePoint.Identity
@if (!string.IsNullOrWhiteSpace(name))
diff --git a/samples/Quickstarts/2_InteractiveAspNetCore/src/MvcClient/MvcClient.csproj b/samples/Quickstarts/2_InteractiveAspNetCore/src/MvcClient/MvcClient.csproj
index 0b4f5ebd6..faa070f0d 100644
--- a/samples/Quickstarts/2_InteractiveAspNetCore/src/MvcClient/MvcClient.csproj
+++ b/samples/Quickstarts/2_InteractiveAspNetCore/src/MvcClient/MvcClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/Api/Api.csproj b/samples/Quickstarts/3_AspNetCoreAndApis/src/Api/Api.csproj
index 23c961295..0c78778c3 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/Api/Api.csproj
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/Api/Api.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/Client/Client.csproj b/samples/Quickstarts/3_AspNetCoreAndApis/src/Client/Client.csproj
index bb4d00cad..fb4cfb5f7 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/Client/Client.csproj
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/Client/Client.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Config.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Config.cs
index c81d979d2..61944abda 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Config.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Config.cs
@@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
-using IdentityServer4.Models;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace IdentityServer
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/IdentityServer.csproj b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/IdentityServer.csproj
index a9a0f20af..ecf71fde3 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/IdentityServer.csproj
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/IdentityServer.csproj
@@ -1,11 +1,11 @@
- netcoreapp3.1
+ net10.0
-
+
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/AccountController.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/AccountController.cs
index 2d51c3cd0..603872753 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/AccountController.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/AccountController.cs
@@ -3,13 +3,13 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
@@ -242,7 +242,7 @@ private async Task BuildLoginViewModelAsync(string returnUrl)
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null && await _schemeProvider.GetSchemeAsync(context.IdP) != null)
{
- var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;
+ var local = context.IdP == ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider;
// this is meant to short circuit the UI and only trigger the one external IdP
var vm = new LoginViewModel
@@ -344,7 +344,7 @@ private async Task BuildLoggedOutViewModelAsync(string logou
if (User?.Identity.IsAuthenticated == true)
{
var idp = User.FindFirst(JwtClaimTypes.IdentityProvider)?.Value;
- if (idp != null && idp != IdentityServer4.IdentityServerConstants.LocalIdentityProvider)
+ if (idp != null && idp != ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider)
{
var providerSupportsSignout = await HttpContext.GetSchemeSupportsSignOutAsync(idp);
if (providerSupportsSignout)
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/ExternalController.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/ExternalController.cs
index 1a7479ea1..00c199652 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/ExternalController.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Account/ExternalController.cs
@@ -1,9 +1,9 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ConsentController.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ConsentController.cs
index 6c3aa44c7..d778e8fb5 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ConsentController.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ConsentController.cs
@@ -2,16 +2,16 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Events;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Validation;
using System.Collections.Generic;
using System;
@@ -120,7 +120,7 @@ private async Task ProcessConsent(ConsentInputModel model)
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -208,7 +208,7 @@ private ConsentViewModel CreateConsentViewModel(
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -251,7 +251,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
index 1d331df04..64ba8c794 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Device/DeviceController.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Device/DeviceController.cs
index d7d07aeb9..9ed5ed0f4 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Device/DeviceController.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Device/DeviceController.cs
@@ -6,12 +6,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Configuration;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Configuration;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Validation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
@@ -102,7 +102,7 @@ private async Task ProcessConsent(DeviceAuthorizationInput
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -184,7 +184,7 @@ private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, Dev
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -221,7 +221,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Extensions.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Extensions.cs
index 6c720b707..60a6ce2bf 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Extensions.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Extensions.cs
@@ -1,5 +1,5 @@
using System;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Mvc;
namespace IdentityServerHost.Quickstart.UI
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Grants/GrantsController.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Grants/GrantsController.cs
index 128ce5921..195a730de 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Grants/GrantsController.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Grants/GrantsController.cs
@@ -2,15 +2,15 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
index a29a21a94..46b8b7af1 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/HomeController.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/HomeController.cs
index 9cf067895..028af424e 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/HomeController.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/Home/HomeController.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
+using ForgePoint.Identity.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/TestUsers.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/TestUsers.cs
index 2acb95405..9f7392e09 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/TestUsers.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Quickstart/TestUsers.cs
@@ -3,11 +3,11 @@
using IdentityModel;
-using IdentityServer4.Test;
+using ForgePoint.Identity.Test;
using System.Collections.Generic;
using System.Security.Claims;
using System.Text.Json;
-using IdentityServer4;
+using ForgePoint.Identity;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Startup.cs b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Startup.cs
index 73b7c59cd..4be753c97 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Startup.cs
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Startup.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
+using ForgePoint.Identity;
using IdentityServerHost.Quickstart.UI;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Home/Index.cshtml b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Home/Index.cshtml
index 36b2bfc3a..1521e3ca5 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Home/Index.cshtml
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Home/Index.cshtml
@@ -1,13 +1,13 @@
@using System.Diagnostics
@{
- var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
+ var version = FileVersionInfo.GetVersionInfo(typeof(ForgePoint.Identity.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
}
- Welcome to IdentityServer4
+ Welcome to ForgePoint.Identity
(version @version)
@@ -25,8 +25,8 @@
Here are links to the
- source code repository ,
- and ready to use samples .
+ source code repository ,
+ and ready to use samples .
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Layout.cshtml b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Layout.cshtml
index 35605f440..402036f0e 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Layout.cshtml
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Layout.cshtml
@@ -5,7 +5,7 @@
- IdentityServer4
+ ForgePoint.Identity
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Nav.cshtml b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Nav.cshtml
index 6ab6b702c..1b3e47536 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Nav.cshtml
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/IdentityServer/Views/Shared/_Nav.cshtml
@@ -1,4 +1,4 @@
-@using IdentityServer4.Extensions
+@using ForgePoint.Identity.Extensions
@{
string name = null;
@@ -13,7 +13,7 @@
- IdentityServer4
+ ForgePoint.Identity
@if (!string.IsNullOrWhiteSpace(name))
diff --git a/samples/Quickstarts/3_AspNetCoreAndApis/src/MvcClient/MvcClient.csproj b/samples/Quickstarts/3_AspNetCoreAndApis/src/MvcClient/MvcClient.csproj
index 5e9da78ab..cf7c3ca2f 100644
--- a/samples/Quickstarts/3_AspNetCoreAndApis/src/MvcClient/MvcClient.csproj
+++ b/samples/Quickstarts/3_AspNetCoreAndApis/src/MvcClient/MvcClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/Api/Api.csproj b/samples/Quickstarts/4_JavaScriptClient/src/Api/Api.csproj
index 23c961295..0c78778c3 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/Api/Api.csproj
+++ b/samples/Quickstarts/4_JavaScriptClient/src/Api/Api.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/Client/Client.csproj b/samples/Quickstarts/4_JavaScriptClient/src/Client/Client.csproj
index bb4d00cad..fb4cfb5f7 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/Client/Client.csproj
+++ b/samples/Quickstarts/4_JavaScriptClient/src/Client/Client.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Config.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Config.cs
index 9d0530ce4..fe9921429 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Config.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Config.cs
@@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
-using IdentityServer4.Models;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace IdentityServer
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/IdentityServer.csproj b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/IdentityServer.csproj
index a9a0f20af..ecf71fde3 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/IdentityServer.csproj
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/IdentityServer.csproj
@@ -1,11 +1,11 @@
- netcoreapp3.1
+ net10.0
-
+
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/AccountController.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/AccountController.cs
index 2d51c3cd0..603872753 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/AccountController.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/AccountController.cs
@@ -3,13 +3,13 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
@@ -242,7 +242,7 @@ private async Task BuildLoginViewModelAsync(string returnUrl)
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null && await _schemeProvider.GetSchemeAsync(context.IdP) != null)
{
- var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;
+ var local = context.IdP == ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider;
// this is meant to short circuit the UI and only trigger the one external IdP
var vm = new LoginViewModel
@@ -344,7 +344,7 @@ private async Task BuildLoggedOutViewModelAsync(string logou
if (User?.Identity.IsAuthenticated == true)
{
var idp = User.FindFirst(JwtClaimTypes.IdentityProvider)?.Value;
- if (idp != null && idp != IdentityServer4.IdentityServerConstants.LocalIdentityProvider)
+ if (idp != null && idp != ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider)
{
var providerSupportsSignout = await HttpContext.GetSchemeSupportsSignOutAsync(idp);
if (providerSupportsSignout)
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/ExternalController.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/ExternalController.cs
index 1a7479ea1..00c199652 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/ExternalController.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Account/ExternalController.cs
@@ -1,9 +1,9 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ConsentController.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ConsentController.cs
index 6c3aa44c7..d778e8fb5 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ConsentController.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ConsentController.cs
@@ -2,16 +2,16 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Events;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Validation;
using System.Collections.Generic;
using System;
@@ -120,7 +120,7 @@ private async Task ProcessConsent(ConsentInputModel model)
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -208,7 +208,7 @@ private ConsentViewModel CreateConsentViewModel(
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -251,7 +251,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
index 1d331df04..64ba8c794 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Device/DeviceController.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Device/DeviceController.cs
index d7d07aeb9..9ed5ed0f4 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Device/DeviceController.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Device/DeviceController.cs
@@ -6,12 +6,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Configuration;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Configuration;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Validation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
@@ -102,7 +102,7 @@ private async Task ProcessConsent(DeviceAuthorizationInput
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -184,7 +184,7 @@ private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, Dev
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -221,7 +221,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Extensions.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Extensions.cs
index 6c720b707..60a6ce2bf 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Extensions.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Extensions.cs
@@ -1,5 +1,5 @@
using System;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Mvc;
namespace IdentityServerHost.Quickstart.UI
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Grants/GrantsController.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Grants/GrantsController.cs
index 128ce5921..195a730de 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Grants/GrantsController.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Grants/GrantsController.cs
@@ -2,15 +2,15 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
index a29a21a94..46b8b7af1 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/HomeController.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/HomeController.cs
index 9cf067895..028af424e 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/HomeController.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/Home/HomeController.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
+using ForgePoint.Identity.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/TestUsers.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/TestUsers.cs
index 2acb95405..9f7392e09 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/TestUsers.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Quickstart/TestUsers.cs
@@ -3,11 +3,11 @@
using IdentityModel;
-using IdentityServer4.Test;
+using ForgePoint.Identity.Test;
using System.Collections.Generic;
using System.Security.Claims;
using System.Text.Json;
-using IdentityServer4;
+using ForgePoint.Identity;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Startup.cs b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Startup.cs
index 73b7c59cd..4be753c97 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Startup.cs
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Startup.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
+using ForgePoint.Identity;
using IdentityServerHost.Quickstart.UI;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Home/Index.cshtml b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Home/Index.cshtml
index 36b2bfc3a..1521e3ca5 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Home/Index.cshtml
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Home/Index.cshtml
@@ -1,13 +1,13 @@
@using System.Diagnostics
@{
- var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
+ var version = FileVersionInfo.GetVersionInfo(typeof(ForgePoint.Identity.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
}
- Welcome to IdentityServer4
+ Welcome to ForgePoint.Identity
(version @version)
@@ -25,8 +25,8 @@
Here are links to the
- source code repository ,
- and ready to use samples .
+ source code repository ,
+ and ready to use samples .
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Layout.cshtml b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Layout.cshtml
index 35605f440..402036f0e 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Layout.cshtml
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Layout.cshtml
@@ -5,7 +5,7 @@
- IdentityServer4
+ ForgePoint.Identity
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Nav.cshtml b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Nav.cshtml
index 6ab6b702c..1b3e47536 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Nav.cshtml
+++ b/samples/Quickstarts/4_JavaScriptClient/src/IdentityServer/Views/Shared/_Nav.cshtml
@@ -1,4 +1,4 @@
-@using IdentityServer4.Extensions
+@using ForgePoint.Identity.Extensions
@{
string name = null;
@@ -13,7 +13,7 @@
- IdentityServer4
+ ForgePoint.Identity
@if (!string.IsNullOrWhiteSpace(name))
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/JavaScriptClient/JavaScriptClient.csproj b/samples/Quickstarts/4_JavaScriptClient/src/JavaScriptClient/JavaScriptClient.csproj
index 92605c5a1..45287e36e 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/JavaScriptClient/JavaScriptClient.csproj
+++ b/samples/Quickstarts/4_JavaScriptClient/src/JavaScriptClient/JavaScriptClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/4_JavaScriptClient/src/MvcClient/MvcClient.csproj b/samples/Quickstarts/4_JavaScriptClient/src/MvcClient/MvcClient.csproj
index 5e9da78ab..cf7c3ca2f 100644
--- a/samples/Quickstarts/4_JavaScriptClient/src/MvcClient/MvcClient.csproj
+++ b/samples/Quickstarts/4_JavaScriptClient/src/MvcClient/MvcClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/5_EntityFramework/src/Api/Api.csproj b/samples/Quickstarts/5_EntityFramework/src/Api/Api.csproj
index 23c961295..0c78778c3 100644
--- a/samples/Quickstarts/5_EntityFramework/src/Api/Api.csproj
+++ b/samples/Quickstarts/5_EntityFramework/src/Api/Api.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/5_EntityFramework/src/Client/Client.csproj b/samples/Quickstarts/5_EntityFramework/src/Client/Client.csproj
index bb4d00cad..fb4cfb5f7 100644
--- a/samples/Quickstarts/5_EntityFramework/src/Client/Client.csproj
+++ b/samples/Quickstarts/5_EntityFramework/src/Client/Client.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Config.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Config.cs
index c81d979d2..61944abda 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Config.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Config.cs
@@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
-using IdentityServer4.Models;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace IdentityServer
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20200625203625_InitialIdentityServerConfigurationDbMigration.Designer.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20200625203625_InitialIdentityServerConfigurationDbMigration.Designer.cs
index 711864e95..90c6c535a 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20200625203625_InitialIdentityServerConfigurationDbMigration.Designer.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/20200625203625_InitialIdentityServerConfigurationDbMigration.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -21,7 +21,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -71,7 +71,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -93,7 +93,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -120,7 +120,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -142,7 +142,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -179,7 +179,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -219,7 +219,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -241,7 +241,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -268,7 +268,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.Client", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -426,7 +426,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("Clients");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -453,7 +453,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -475,7 +475,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientCorsOrigins");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -497,7 +497,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientGrantTypes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -519,7 +519,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientIdPRestrictions");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -541,7 +541,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientPostLogoutRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -568,7 +568,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -590,7 +590,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -612,7 +612,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -649,7 +649,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -698,7 +698,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -720,7 +720,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -747,153 +747,153 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("UserClaims")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Properties")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Scopes")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Secrets")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("UserClaims")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("Properties")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Claims")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedCorsOrigins")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedGrantTypes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("IdentityProviderRestrictions")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("PostLogoutRedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Properties")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("RedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedScopes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("ClientSecrets")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("UserClaims")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("Properties")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
index d07f43d26..ae686ad50 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -69,7 +69,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -91,7 +91,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -118,7 +118,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -140,7 +140,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -177,7 +177,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -217,7 +217,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -239,7 +239,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -266,7 +266,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.Client", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -424,7 +424,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("Clients");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -451,7 +451,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -473,7 +473,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientCorsOrigins");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -495,7 +495,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientGrantTypes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -517,7 +517,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientIdPRestrictions");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -539,7 +539,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientPostLogoutRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -566,7 +566,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -588,7 +588,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -610,7 +610,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -647,7 +647,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -696,7 +696,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -718,7 +718,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -745,153 +745,153 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("UserClaims")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Properties")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Scopes")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Secrets")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("UserClaims")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("Properties")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Claims")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedCorsOrigins")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedGrantTypes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("IdentityProviderRestrictions")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("PostLogoutRedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Properties")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("RedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedScopes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("ClientSecrets")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("UserClaims")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("Properties")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20200625203357_InitialIdentityServerPersistedGrantDbMigration.Designer.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20200625203357_InitialIdentityServerPersistedGrantDbMigration.Designer.cs
index 1ba1c2973..7e2bb2c3f 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20200625203357_InitialIdentityServerPersistedGrantDbMigration.Designer.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/20200625203357_InitialIdentityServerPersistedGrantDbMigration.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -21,7 +21,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property("UserCode")
.HasColumnType("nvarchar(200)")
@@ -71,7 +71,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property("Key")
.HasColumnType("nvarchar(200)")
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs
index 14a33f7eb..adf989bb0 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Data/Migrations/IdentityServer/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property("UserCode")
.HasColumnType("nvarchar(200)")
@@ -69,7 +69,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property("Key")
.HasColumnType("nvarchar(200)")
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/IdentityServer.csproj b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/IdentityServer.csproj
index 771a8ff88..6e3f590a5 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/IdentityServer.csproj
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/IdentityServer.csproj
@@ -1,11 +1,11 @@
- netcoreapp3.1
+ net10.0
-
+
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/AccountController.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/AccountController.cs
index 2d51c3cd0..603872753 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/AccountController.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/AccountController.cs
@@ -3,13 +3,13 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
@@ -242,7 +242,7 @@ private async Task BuildLoginViewModelAsync(string returnUrl)
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null && await _schemeProvider.GetSchemeAsync(context.IdP) != null)
{
- var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;
+ var local = context.IdP == ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider;
// this is meant to short circuit the UI and only trigger the one external IdP
var vm = new LoginViewModel
@@ -344,7 +344,7 @@ private async Task BuildLoggedOutViewModelAsync(string logou
if (User?.Identity.IsAuthenticated == true)
{
var idp = User.FindFirst(JwtClaimTypes.IdentityProvider)?.Value;
- if (idp != null && idp != IdentityServer4.IdentityServerConstants.LocalIdentityProvider)
+ if (idp != null && idp != ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider)
{
var providerSupportsSignout = await HttpContext.GetSchemeSupportsSignOutAsync(idp);
if (providerSupportsSignout)
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/ExternalController.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/ExternalController.cs
index 1a7479ea1..00c199652 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/ExternalController.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Account/ExternalController.cs
@@ -1,9 +1,9 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
-using IdentityServer4.Test;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
+using ForgePoint.Identity.Test;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ConsentController.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ConsentController.cs
index 6c3aa44c7..d778e8fb5 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ConsentController.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ConsentController.cs
@@ -2,16 +2,16 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Events;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Validation;
using System.Collections.Generic;
using System;
@@ -120,7 +120,7 @@ private async Task ProcessConsent(ConsentInputModel model)
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -208,7 +208,7 @@ private ConsentViewModel CreateConsentViewModel(
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -251,7 +251,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
index 1d331df04..64ba8c794 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Consent/ProcessConsentResult.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Device/DeviceController.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Device/DeviceController.cs
index d7d07aeb9..9ed5ed0f4 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Device/DeviceController.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Device/DeviceController.cs
@@ -6,12 +6,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Configuration;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Configuration;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Validation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
@@ -102,7 +102,7 @@ private async Task ProcessConsent(DeviceAuthorizationInput
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -184,7 +184,7 @@ private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, Dev
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -221,7 +221,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Extensions.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Extensions.cs
index 6c720b707..60a6ce2bf 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Extensions.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Extensions.cs
@@ -1,5 +1,5 @@
using System;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Mvc;
namespace IdentityServerHost.Quickstart.UI
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Grants/GrantsController.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Grants/GrantsController.cs
index 128ce5921..195a730de 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Grants/GrantsController.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Grants/GrantsController.cs
@@ -2,15 +2,15 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
index a29a21a94..46b8b7af1 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/ErrorViewModel.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/HomeController.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/HomeController.cs
index 9cf067895..028af424e 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/HomeController.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/Home/HomeController.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
+using ForgePoint.Identity.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/TestUsers.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/TestUsers.cs
index 2acb95405..9f7392e09 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/TestUsers.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Quickstart/TestUsers.cs
@@ -3,11 +3,11 @@
using IdentityModel;
-using IdentityServer4.Test;
+using ForgePoint.Identity.Test;
using System.Collections.Generic;
using System.Security.Claims;
using System.Text.Json;
-using IdentityServer4;
+using ForgePoint.Identity;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Startup.cs b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Startup.cs
index f0a0510ce..3b81a2fc9 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Startup.cs
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Startup.cs
@@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
-using IdentityServer4.EntityFramework.DbContexts;
-using IdentityServer4.EntityFramework.Mappers;
+using ForgePoint.Identity;
+using ForgePoint.Identity.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.Mappers;
using IdentityServerHost.Quickstart.UI;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@@ -24,7 +24,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddControllersWithViews();
var migrationsAssembly = typeof(Startup).GetTypeInfo().Assembly.GetName().Name;
- const string connectionString = @"Data Source=(LocalDb)\MSSQLLocalDB;database=IdentityServer4.Quickstart.EntityFramework-4.0.0;trusted_connection=yes;";
+ const string connectionString = @"Data Source=(LocalDb)\MSSQLLocalDB;database=ForgePoint.Identity.Quickstart.EntityFramework-4.0.0;trusted_connection=yes;";
var builder = services.AddIdentityServer()
.AddTestUsers(TestUsers.Users)
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Home/Index.cshtml b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Home/Index.cshtml
index 36b2bfc3a..1521e3ca5 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Home/Index.cshtml
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Home/Index.cshtml
@@ -1,13 +1,13 @@
@using System.Diagnostics
@{
- var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
+ var version = FileVersionInfo.GetVersionInfo(typeof(ForgePoint.Identity.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
}
- Welcome to IdentityServer4
+ Welcome to ForgePoint.Identity
(version @version)
@@ -25,8 +25,8 @@
Here are links to the
- source code repository ,
- and ready to use samples .
+ source code repository ,
+ and ready to use samples .
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Layout.cshtml b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Layout.cshtml
index 35605f440..402036f0e 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Layout.cshtml
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Layout.cshtml
@@ -5,7 +5,7 @@
- IdentityServer4
+ ForgePoint.Identity
diff --git a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Nav.cshtml b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Nav.cshtml
index 6ab6b702c..1b3e47536 100644
--- a/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Nav.cshtml
+++ b/samples/Quickstarts/5_EntityFramework/src/IdentityServer/Views/Shared/_Nav.cshtml
@@ -1,4 +1,4 @@
-@using IdentityServer4.Extensions
+@using ForgePoint.Identity.Extensions
@{
string name = null;
@@ -13,7 +13,7 @@
- IdentityServer4
+ ForgePoint.Identity
@if (!string.IsNullOrWhiteSpace(name))
diff --git a/samples/Quickstarts/5_EntityFramework/src/MvcClient/MvcClient.csproj b/samples/Quickstarts/5_EntityFramework/src/MvcClient/MvcClient.csproj
index 5e9da78ab..cf7c3ca2f 100644
--- a/samples/Quickstarts/5_EntityFramework/src/MvcClient/MvcClient.csproj
+++ b/samples/Quickstarts/5_EntityFramework/src/MvcClient/MvcClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/Api/Api.csproj b/samples/Quickstarts/6_AspNetIdentity/src/Api/Api.csproj
index 23c961295..0c78778c3 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/Api/Api.csproj
+++ b/samples/Quickstarts/6_AspNetIdentity/src/Api/Api.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/Client/Client.csproj b/samples/Quickstarts/6_AspNetIdentity/src/Client/Client.csproj
index bb4d00cad..fb4cfb5f7 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/Client/Client.csproj
+++ b/samples/Quickstarts/6_AspNetIdentity/src/Client/Client.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
Exe
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Config.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Config.cs
index b6710745d..430348cc8 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Config.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Config.cs
@@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
-using IdentityServer4.Models;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace IdentityServerAspNetIdentity
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/IdentityServerAspNetIdentity.csproj b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/IdentityServerAspNetIdentity.csproj
index 1c2597539..d8fa4023d 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/IdentityServerAspNetIdentity.csproj
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/IdentityServerAspNetIdentity.csproj
@@ -1,11 +1,11 @@
- netcoreapp3.1
+ net10.0
-
+
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/AccountController.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/AccountController.cs
index 04f1bc7eb..402c4e0f7 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/AccountController.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/AccountController.cs
@@ -3,11 +3,11 @@
using IdentityModel;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using IdentityServerAspNetIdentity.Models;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
@@ -217,7 +217,7 @@ private async Task BuildLoginViewModelAsync(string returnUrl)
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null && await _schemeProvider.GetSchemeAsync(context.IdP) != null)
{
- var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;
+ var local = context.IdP == ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider;
// this is meant to short circuit the UI and only trigger the one external IdP
var vm = new LoginViewModel
@@ -319,7 +319,7 @@ private async Task BuildLoggedOutViewModelAsync(string logou
if (User?.Identity.IsAuthenticated == true)
{
var idp = User.FindFirst(JwtClaimTypes.IdentityProvider)?.Value;
- if (idp != null && idp != IdentityServer4.IdentityServerConstants.LocalIdentityProvider)
+ if (idp != null && idp != ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider)
{
var providerSupportsSignout = await HttpContext.GetSchemeSupportsSignOutAsync(idp);
if (providerSupportsSignout)
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/ExternalController.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/ExternalController.cs
index bfa61b4bc..4c23a3099 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/ExternalController.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Account/ExternalController.cs
@@ -4,10 +4,10 @@
using System.Security.Claims;
using System.Threading.Tasks;
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using IdentityServerAspNetIdentity.Models;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ConsentController.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ConsentController.cs
index 6c3aa44c7..d778e8fb5 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ConsentController.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ConsentController.cs
@@ -2,16 +2,16 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Events;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Validation;
using System.Collections.Generic;
using System;
@@ -120,7 +120,7 @@ private async Task ProcessConsent(ConsentInputModel model)
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -208,7 +208,7 @@ private ConsentViewModel CreateConsentViewModel(
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -251,7 +251,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ProcessConsentResult.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ProcessConsentResult.cs
index 1d331df04..64ba8c794 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ProcessConsentResult.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Consent/ProcessConsentResult.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Device/DeviceController.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Device/DeviceController.cs
index d7d07aeb9..9ed5ed0f4 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Device/DeviceController.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Device/DeviceController.cs
@@ -6,12 +6,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Configuration;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Configuration;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Validation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
@@ -102,7 +102,7 @@ private async Task ProcessConsent(DeviceAuthorizationInput
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -184,7 +184,7 @@ private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, Dev
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -221,7 +221,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Extensions.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Extensions.cs
index 6c720b707..60a6ce2bf 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Extensions.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Extensions.cs
@@ -1,5 +1,5 @@
using System;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Mvc;
namespace IdentityServerHost.Quickstart.UI
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Grants/GrantsController.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Grants/GrantsController.cs
index 128ce5921..195a730de 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Grants/GrantsController.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Grants/GrantsController.cs
@@ -2,15 +2,15 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/ErrorViewModel.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/ErrorViewModel.cs
index a29a21a94..46b8b7af1 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/ErrorViewModel.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/ErrorViewModel.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/HomeController.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/HomeController.cs
index 9cf067895..028af424e 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/HomeController.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/Home/HomeController.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
+using ForgePoint.Identity.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/TestUsers.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/TestUsers.cs
index b4d2f821f..fa1df9572 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/TestUsers.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Quickstart/TestUsers.cs
@@ -3,7 +3,7 @@
using IdentityModel;
-using IdentityServer4.Test;
+using ForgePoint.Identity.Test;
using System.Collections.Generic;
using System.Security.Claims;
@@ -22,7 +22,7 @@ public class TestUsers
new Claim(JwtClaimTypes.Email, "AliceSmith@email.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://alice.com"),
- new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json)
+ new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", ForgePoint.Identity.IdentityServerConstants.ClaimValueTypes.Json)
}
},
new TestUser{SubjectId = "88421113", Username = "bob", Password = "bob",
@@ -34,7 +34,7 @@ public class TestUsers
new Claim(JwtClaimTypes.Email, "BobSmith@email.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://bob.com"),
- new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json),
+ new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", ForgePoint.Identity.IdentityServerConstants.ClaimValueTypes.Json),
new Claim("location", "somewhere")
}
}
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Startup.cs b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Startup.cs
index 6d427a02b..e1e826092 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Startup.cs
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Startup.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4;
+using ForgePoint.Identity;
using IdentityServerAspNetIdentity.Data;
using IdentityServerAspNetIdentity.Models;
using Microsoft.AspNetCore.Builder;
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Home/Index.cshtml b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Home/Index.cshtml
index 36b2bfc3a..1521e3ca5 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Home/Index.cshtml
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Home/Index.cshtml
@@ -1,13 +1,13 @@
@using System.Diagnostics
@{
- var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
+ var version = FileVersionInfo.GetVersionInfo(typeof(ForgePoint.Identity.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
}
- Welcome to IdentityServer4
+ Welcome to ForgePoint.Identity
(version @version)
@@ -25,8 +25,8 @@
Here are links to the
- source code repository ,
- and ready to use samples .
+ source code repository ,
+ and ready to use samples .
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Layout.cshtml b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Layout.cshtml
index 35605f440..402036f0e 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Layout.cshtml
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Layout.cshtml
@@ -5,7 +5,7 @@
- IdentityServer4
+ ForgePoint.Identity
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Nav.cshtml b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Nav.cshtml
index 6ab6b702c..1b3e47536 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Nav.cshtml
+++ b/samples/Quickstarts/6_AspNetIdentity/src/IdentityServerAspNetIdentity/Views/Shared/_Nav.cshtml
@@ -1,4 +1,4 @@
-@using IdentityServer4.Extensions
+@using ForgePoint.Identity.Extensions
@{
string name = null;
@@ -13,7 +13,7 @@
- IdentityServer4
+ ForgePoint.Identity
@if (!string.IsNullOrWhiteSpace(name))
diff --git a/samples/Quickstarts/6_AspNetIdentity/src/MvcClient/MvcClient.csproj b/samples/Quickstarts/6_AspNetIdentity/src/MvcClient/MvcClient.csproj
index 5e9da78ab..cf7c3ca2f 100644
--- a/samples/Quickstarts/6_AspNetIdentity/src/MvcClient/MvcClient.csproj
+++ b/samples/Quickstarts/6_AspNetIdentity/src/MvcClient/MvcClient.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/samples/Quickstarts/Directory.Build.targets b/samples/Quickstarts/Directory.Build.targets
index 1611f8603..7de65e333 100644
--- a/samples/Quickstarts/Directory.Build.targets
+++ b/samples/Quickstarts/Directory.Build.targets
@@ -1,14 +1,14 @@
- 3.1.5
+ 10.0.11
-
-
-
-
+
+
+
+
@@ -16,8 +16,8 @@
-
+
-
+
-
\ No newline at end of file
+
diff --git a/scripts/upgrade-namespaces/README.md b/scripts/upgrade-namespaces/README.md
new file mode 100644
index 000000000..cbc8f3fd8
--- /dev/null
+++ b/scripts/upgrade-namespaces/README.md
@@ -0,0 +1,23 @@
+# ForgePoint.Identity upgrade scripts
+
+Rewrites IdentityServer4 package ids and C# namespaces to ForgePoint.Identity.
+
+Type names such as `AddIdentityServer` and `IdentityServerOptions` are not changed. Requires Python 3.
+
+```bash
+python3 rewrite.py /path/to/your/app --all --dry-run
+python3 rewrite.py /path/to/your/app --all
+./upgrade.sh /path/to/your/app
+```
+
+```powershell
+./upgrade.ps1 -Path C:\path\to\your\app
+```
+
+Run the tests with:
+
+```bash
+python3 test_rewrite.py
+```
+
+See [docs/upgrade.md](../../docs/upgrade.md).
diff --git a/scripts/upgrade-namespaces/rewrite.py b/scripts/upgrade-namespaces/rewrite.py
new file mode 100755
index 000000000..9678b2906
--- /dev/null
+++ b/scripts/upgrade-namespaces/rewrite.py
@@ -0,0 +1,158 @@
+#!/usr/bin/env python3
+"""Rewrite IdentityServer4 namespaces (and optional package ids) to ForgePoint.Identity.
+
+Used both to migrate this repository and as the engine behind the consumer scripts.
+Type names such as AddIdentityServer, IdentityServerOptions, and IdentityServerConstants
+are left unchanged.
+"""
+
+from __future__ import annotations
+
+import argparse
+import os
+import re
+from pathlib import Path
+
+SKIP_DIR_NAMES = {
+ ".git",
+ "bin",
+ "obj",
+ "nuget",
+ "artifacts",
+ "node_modules",
+ "wwwroot",
+}
+
+SOURCE_SUFFIXES = {".cs", ".cshtml", ".razor", ".fs", ".vb"}
+PROJECT_SUFFIXES = {".csproj", ".fsproj", ".vbproj", ".props", ".targets"}
+
+# Longest-first so IdentityServer4.Storage does not become ForgePoint.Identity.Storage
+# after a shorter IdentityServer4 replacement.
+PACKAGE_REPLACEMENTS = (
+ ("IdentityServer4.EntityFramework.Storage", "ForgePoint.Identity.EntityFramework.Storage"),
+ ("IdentityServer4.EntityFramework", "ForgePoint.Identity.EntityFramework"),
+ ("IdentityServer4.AspNetIdentity", "ForgePoint.Identity.AspNetIdentity"),
+ ("IdentityServer4.Storage", "ForgePoint.Identity.Storage"),
+ ("IdentityServer4", "ForgePoint.Identity"),
+)
+
+FRIEND_ASSEMBLY_RE = re.compile(r'InternalsVisibleTo\(\s*"IdentityServer4[^"]*"')
+
+USING_LINE_RE = re.compile(r'(?m)^(\s*(?:@)?(?:global\s+)?using )IdentityServer4;')
+USING_VB_RE = re.compile(r'(?m)^(\s*Imports )IdentityServer4(\r?\n)')
+NAMESPACE_FILE_SCOPED_RE = re.compile(r'(?m)^(namespace )IdentityServer4;')
+NAMESPACE_BLOCK_RE = re.compile(r'(?m)^(namespace )IdentityServer4(\r?\n| )')
+
+
+def protect_friend_assemblies(text: str) -> tuple[str, list[tuple[str, str]]]:
+ saved: list[tuple[str, str]] = []
+
+ def repl(match: re.Match[str]) -> str:
+ token = f"___FP_IVT_{len(saved)}___"
+ saved.append((token, match.group(0)))
+ return token
+
+ return FRIEND_ASSEMBLY_RE.sub(repl, text), saved
+
+
+def restore_friend_assemblies(text: str, saved: list[tuple[str, str]]) -> str:
+ for token, original in saved:
+ text = text.replace(token, original)
+ return text
+
+
+def rewrite_namespaces(text: str) -> str:
+ text, saved = protect_friend_assemblies(text)
+
+ text = text.replace("IdentityServer4.", "ForgePoint.Identity.")
+ text = text.replace("global::IdentityServer4", "global::ForgePoint.Identity")
+ text = USING_LINE_RE.sub(r"\1ForgePoint.Identity;", text)
+ text = USING_VB_RE.sub(r"\1ForgePoint.Identity\2", text)
+ text = NAMESPACE_FILE_SCOPED_RE.sub(r"\1ForgePoint.Identity;", text)
+ text = NAMESPACE_BLOCK_RE.sub(r"\1ForgePoint.Identity\2", text)
+
+ return restore_friend_assemblies(text, saved)
+
+
+def rewrite_packages(text: str) -> str:
+ """Rewrite PackageReference / PackageVersion / PackageId only.
+
+ AssemblyName, RootNamespace, ProjectReference paths, PackageTags, and
+ InternalsVisibleTo stay as they are so friend-test assemblies keep working.
+ """
+ for old, new in PACKAGE_REPLACEMENTS:
+ text = text.replace(f'Include="{old}"', f'Include="{new}"')
+ text = text.replace(f"Include='{old}'", f"Include='{new}'")
+ text = text.replace(f'Update="{old}"', f'Update="{new}"')
+ text = text.replace(f"Update='{old}'", f"Update='{new}'")
+ text = text.replace(f"{old} ", f"{new} ")
+ return text
+
+
+def should_skip_dir(name: str) -> bool:
+ return name in SKIP_DIR_NAMES
+
+
+def iter_files(root: Path, suffixes: set[str]):
+ for dirpath, dirnames, filenames in os.walk(root):
+ dirnames[:] = [d for d in dirnames if not should_skip_dir(d)]
+ for filename in filenames:
+ path = Path(dirpath) / filename
+ if path.suffix.lower() in suffixes:
+ yield path
+
+
+def rewrite_file(path: Path, namespaces: bool, packages: bool, dry_run: bool) -> bool:
+ original = path.read_text(encoding="utf-8")
+ updated = original
+ if namespaces:
+ updated = rewrite_namespaces(updated)
+ if packages:
+ updated = rewrite_packages(updated)
+ if updated == original:
+ return False
+ if not dry_run:
+ path.write_text(updated, encoding="utf-8")
+ return True
+
+
+def main() -> int:
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("root", nargs="?", default=".", help="Solution or project directory")
+ parser.add_argument("--namespaces", action="store_true", default=False)
+ parser.add_argument("--packages", action="store_true", default=False)
+ parser.add_argument("--all", action="store_true", help="Rewrite namespaces and package ids")
+ parser.add_argument(
+ "--dry-run",
+ action="store_true",
+ help="Print files that would change without writing them",
+ )
+ args = parser.parse_args()
+
+ namespaces = args.namespaces or args.all
+ packages = args.packages or args.all
+ if not namespaces and not packages:
+ parser.error("Specify --namespaces, --packages, or --all")
+
+ root = Path(args.root).resolve()
+ changed = 0
+ prefix = "would update" if args.dry_run else "updated"
+
+ if namespaces:
+ for path in iter_files(root, SOURCE_SUFFIXES):
+ if rewrite_file(path, namespaces=True, packages=False, dry_run=args.dry_run):
+ print(f"namespace {prefix} {path.relative_to(root)}")
+ changed += 1
+
+ if packages:
+ for path in iter_files(root, PROJECT_SUFFIXES):
+ if rewrite_file(path, namespaces=False, packages=True, dry_run=args.dry_run):
+ print(f"package {prefix} {path.relative_to(root)}")
+ changed += 1
+
+ print(f"{prefix.capitalize()} {changed} file(s) under {root}")
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/scripts/upgrade-namespaces/test_rewrite.py b/scripts/upgrade-namespaces/test_rewrite.py
new file mode 100755
index 000000000..3bfff2ef3
--- /dev/null
+++ b/scripts/upgrade-namespaces/test_rewrite.py
@@ -0,0 +1,123 @@
+#!/usr/bin/env python3
+"""Tests for the IdentityServer4 → ForgePoint.Identity rewrite engine."""
+
+from __future__ import annotations
+
+import unittest
+
+from rewrite import rewrite_namespaces, rewrite_packages
+
+
+class NamespaceTests(unittest.TestCase):
+ def test_using_and_namespace(self) -> None:
+ source = (
+ "using IdentityServer4;\n"
+ "using IdentityServer4.Models;\n"
+ "using IdentityServer4.Stores;\n"
+ "\n"
+ "namespace IdentityServer4.Hosting\n"
+ "{\n"
+ " public class Startup\n"
+ " {\n"
+ " public void ConfigureServices(IServiceCollection services)\n"
+ " {\n"
+ " services.AddIdentityServer();\n"
+ " }\n"
+ " }\n"
+ "}\n"
+ )
+ updated = rewrite_namespaces(source)
+ self.assertIn("using ForgePoint.Identity;", updated)
+ self.assertIn("using ForgePoint.Identity.Models;", updated)
+ self.assertIn("using ForgePoint.Identity.Stores;", updated)
+ self.assertIn("namespace ForgePoint.Identity.Hosting", updated)
+ self.assertIn("services.AddIdentityServer();", updated)
+ self.assertNotIn("IdentityServer4", updated)
+
+ def test_file_scoped_namespace_and_crlf(self) -> None:
+ source = "using IdentityServer4;\r\nnamespace IdentityServer4;\r\n"
+ updated = rewrite_namespaces(source)
+ self.assertEqual("using ForgePoint.Identity;\r\nnamespace ForgePoint.Identity;\r\n", updated)
+
+ def test_global_using(self) -> None:
+ source = "global using IdentityServer4;\nglobal using IdentityServer4.Models;\n"
+ updated = rewrite_namespaces(source)
+ self.assertEqual(
+ "global using ForgePoint.Identity;\nglobal using ForgePoint.Identity.Models;\n",
+ updated,
+ )
+
+ def test_global_alias(self) -> None:
+ source = "typeof(global::IdentityServer4.Models.Client)"
+ self.assertEqual(
+ "typeof(global::ForgePoint.Identity.Models.Client)",
+ rewrite_namespaces(source),
+ )
+
+ def test_ef_snapshot_clr_names(self) -> None:
+ source = 'modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>'
+ updated = rewrite_namespaces(source)
+ self.assertIn("ForgePoint.Identity.EntityFramework.Entities.Client", updated)
+
+ def test_friend_assemblies_are_preserved(self) -> None:
+ source = (
+ '[assembly: InternalsVisibleTo("IdentityServer4.EntityFramework.UnitTests, PublicKey = ABC")]\n'
+ '[assembly: InternalsVisibleTo("IdentityServer4.EntityFramework.IntegrationTests")]\n'
+ "using IdentityServer4.EntityFramework;\n"
+ )
+ updated = rewrite_namespaces(source)
+ self.assertIn('InternalsVisibleTo("IdentityServer4.EntityFramework.UnitTests, PublicKey = ABC")', updated)
+ self.assertIn('InternalsVisibleTo("IdentityServer4.EntityFramework.IntegrationTests")', updated)
+ self.assertIn("using ForgePoint.Identity.EntityFramework;", updated)
+
+ def test_type_names_are_not_renamed(self) -> None:
+ source = (
+ "builder.UseIdentityServer();\n"
+ "options.IdentityServerName = IdentityServerConstants.LocalApi.ScopeName;\n"
+ "services.AddHealthChecks().AddIdentityServer();\n"
+ )
+ self.assertEqual(source, rewrite_namespaces(source))
+
+
+class PackageTests(unittest.TestCase):
+ def test_package_reference_longest_first(self) -> None:
+ source = """
+
+
+
+
+
+
+
+
+
+
+
+ IdentityServer4
+ IdentityServer4.EntityFramework.UnitTests
+ IdentityServer4
+ Identity;IdentityServer4
+
+
+
+
+
+"""
+ updated = rewrite_packages(source)
+ self.assertIn('Include="ForgePoint.Identity.EntityFramework.Storage"', updated)
+ self.assertIn('Include="ForgePoint.Identity.EntityFramework"', updated)
+ self.assertIn('Include="ForgePoint.Identity.AspNetIdentity"', updated)
+ self.assertIn('Include="ForgePoint.Identity.Storage"', updated)
+ self.assertIn('Include="ForgePoint.Identity"', updated)
+ self.assertIn("ForgePoint.Identity ", updated)
+ self.assertIn('Update="ForgePoint.Identity.Storage"', updated)
+ self.assertIn("IdentityServer4.EntityFramework.UnitTests ", updated)
+ self.assertIn("IdentityServer4 ", updated)
+ self.assertIn("Identity;IdentityServer4 ", updated)
+ self.assertIn('Include="..\\src\\IdentityServer4.csproj"', updated)
+ self.assertNotIn('Include="IdentityServer4"', updated)
+ self.assertNotIn('Include="IdentityServer4.', updated)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/scripts/upgrade-namespaces/upgrade.ps1 b/scripts/upgrade-namespaces/upgrade.ps1
new file mode 100644
index 000000000..5d329d155
--- /dev/null
+++ b/scripts/upgrade-namespaces/upgrade.ps1
@@ -0,0 +1,36 @@
+# Rewrite IdentityServer4 package ids and namespaces to ForgePoint.Identity.
+# Type names such as AddIdentityServer and IdentityServerOptions are not changed.
+
+param(
+ [string]$Path = ".",
+ [switch]$Namespaces,
+ [switch]$Packages,
+ [switch]$All,
+ [switch]$DryRun
+)
+
+$ErrorActionPreference = "Stop"
+$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
+
+if (-not $Namespaces -and -not $Packages -and -not $All) {
+ $All = $true
+}
+
+$python = Get-Command python3 -ErrorAction SilentlyContinue
+if (-not $python) {
+ $python = Get-Command python -ErrorAction SilentlyContinue
+}
+
+if (-not $python) {
+ throw "Python is required to run this upgrade script."
+}
+
+$pythonArgs = @((Resolve-Path $Path).Path)
+if ($All) { $pythonArgs += "--all" }
+else {
+ if ($Namespaces) { $pythonArgs += "--namespaces" }
+ if ($Packages) { $pythonArgs += "--packages" }
+}
+if ($DryRun) { $pythonArgs += "--dry-run" }
+
+& $python.Source (Join-Path $scriptDir "rewrite.py") @pythonArgs
diff --git a/scripts/upgrade-namespaces/upgrade.sh b/scripts/upgrade-namespaces/upgrade.sh
new file mode 100755
index 000000000..cdf35a7c7
--- /dev/null
+++ b/scripts/upgrade-namespaces/upgrade.sh
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+# Rewrite IdentityServer4 package ids and/or namespaces to ForgePoint.Identity.
+# Type names such as AddIdentityServer and IdentityServerOptions are not changed.
+
+ROOT="."
+EXTRA=()
+for arg in "$@"; do
+ if [[ "$arg" == --* ]]; then
+ EXTRA+=("$arg")
+ else
+ ROOT="$arg"
+ fi
+done
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+
+if command -v python3 >/dev/null 2>&1; then
+ python3 "$SCRIPT_DIR/rewrite.py" "$ROOT" --all "${EXTRA[@]}"
+ exit $?
+fi
+
+echo "python3 is required to run this upgrade script." >&2
+exit 1
diff --git a/src/AspNetIdentity/README.md b/src/AspNetIdentity/README.md
index 0c0f9bd9a..6f776e288 100644
--- a/src/AspNetIdentity/README.md
+++ b/src/AspNetIdentity/README.md
@@ -1,9 +1,9 @@
-# IdentityServer4.AspNetIdentity
+# ForgePoint.Identity.AspNetIdentity
-ASP.NET Core Identity integration support for IdentityServer4.
+ASP.NET Core Identity integration for ForgePoint.Identity.
-You can find a detailed walk-through for ASP.NET Core Identity integration [here](https://identityserver4.readthedocs.io/en/latest/quickstarts/6_aspnet_identity.html).
+You can find a detailed walk-through for ASP.NET Core Identity integration in the historical IdentityServer4 docs: [https://identityserver4.readthedocs.io/en/latest/quickstarts/6_aspnet_identity.html](https://identityserver4.readthedocs.io/en/latest/quickstarts/6_aspnet_identity.html).
## Issues
-For issues, use the [consolidated IdentityServer4 issue tracker](https://github.com/IdentityServer/IdentityServer4/issues).
+Open issues on this repository.
diff --git a/src/AspNetIdentity/build/Program.cs b/src/AspNetIdentity/build/Program.cs
index 46a19ae28..71c58d642 100644
--- a/src/AspNetIdentity/build/Program.cs
+++ b/src/AspNetIdentity/build/Program.cs
@@ -2,6 +2,6 @@
{
partial class Program
{
- private const string Prefix = "AspNetIdentity";
+ private const string Prefix = "ForgePoint.Identity.AspNetIdentity";
}
}
diff --git a/src/AspNetIdentity/build/build.csproj b/src/AspNetIdentity/build/build.csproj
index 43c81aaed..f1804320d 100644
--- a/src/AspNetIdentity/build/build.csproj
+++ b/src/AspNetIdentity/build/build.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net10.0
diff --git a/src/AspNetIdentity/host/Configuration/Clients.cs b/src/AspNetIdentity/host/Configuration/Clients.cs
index ae2c6a1aa..eb652c28e 100644
--- a/src/AspNetIdentity/host/Configuration/Clients.cs
+++ b/src/AspNetIdentity/host/Configuration/Clients.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
namespace IdentityServerHost.Configuration
diff --git a/src/AspNetIdentity/host/Configuration/ClientsConsole.cs b/src/AspNetIdentity/host/Configuration/ClientsConsole.cs
index 8e5792d85..27c6c0ae6 100644
--- a/src/AspNetIdentity/host/Configuration/ClientsConsole.cs
+++ b/src/AspNetIdentity/host/Configuration/ClientsConsole.cs
@@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using System.Collections.Generic;
-using IdentityServer4;
-using IdentityServer4.Models;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Configuration
{
diff --git a/src/AspNetIdentity/host/Configuration/ClientsWeb.cs b/src/AspNetIdentity/host/Configuration/ClientsWeb.cs
index 444b887b4..9909da1a3 100644
--- a/src/AspNetIdentity/host/Configuration/ClientsWeb.cs
+++ b/src/AspNetIdentity/host/Configuration/ClientsWeb.cs
@@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.using System.Collections.Generic;
using System.Collections.Generic;
-using IdentityServer4;
-using IdentityServer4.Models;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Configuration
{
diff --git a/src/AspNetIdentity/host/Configuration/Resources.cs b/src/AspNetIdentity/host/Configuration/Resources.cs
index 12a33bbf4..f73afc04f 100644
--- a/src/AspNetIdentity/host/Configuration/Resources.cs
+++ b/src/AspNetIdentity/host/Configuration/Resources.cs
@@ -3,9 +3,9 @@
using IdentityModel;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using System.Collections.Generic;
-using static IdentityServer4.IdentityServerConstants;
+using static ForgePoint.Identity.IdentityServerConstants;
namespace IdentityServerHost.Configuration
{
diff --git a/src/AspNetIdentity/host/Data/ApplicationDbContext.cs b/src/AspNetIdentity/host/Data/ApplicationDbContext.cs
index a992ea75d..ed2e6ad35 100644
--- a/src/AspNetIdentity/host/Data/ApplicationDbContext.cs
+++ b/src/AspNetIdentity/host/Data/ApplicationDbContext.cs
@@ -1,4 +1,4 @@
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
diff --git a/src/AspNetIdentity/host/Host.csproj b/src/AspNetIdentity/host/Host.csproj
index 30fcf037f..a4cbd97a2 100644
--- a/src/AspNetIdentity/host/Host.csproj
+++ b/src/AspNetIdentity/host/Host.csproj
@@ -1,14 +1,11 @@
- netcoreapp3.1
+ net10.0
-
-
-
-
+
diff --git a/src/AspNetIdentity/host/Models/AccountViewModels/ExternalLoginViewModel.cs b/src/AspNetIdentity/host/Models/AccountViewModels/ExternalLoginViewModel.cs
index 61ef30754..433744fca 100644
--- a/src/AspNetIdentity/host/Models/AccountViewModels/ExternalLoginViewModel.cs
+++ b/src/AspNetIdentity/host/Models/AccountViewModels/ExternalLoginViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.AccountViewModels
+namespace ForgePoint.Identity.Models.AccountViewModels
{
public class ExternalLoginViewModel
{
diff --git a/src/AspNetIdentity/host/Models/AccountViewModels/ForgotPasswordViewModel.cs b/src/AspNetIdentity/host/Models/AccountViewModels/ForgotPasswordViewModel.cs
index 25db78ba7..945112474 100644
--- a/src/AspNetIdentity/host/Models/AccountViewModels/ForgotPasswordViewModel.cs
+++ b/src/AspNetIdentity/host/Models/AccountViewModels/ForgotPasswordViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.AccountViewModels
+namespace ForgePoint.Identity.Models.AccountViewModels
{
public class ForgotPasswordViewModel
{
diff --git a/src/AspNetIdentity/host/Models/AccountViewModels/LoginViewModel.cs b/src/AspNetIdentity/host/Models/AccountViewModels/LoginViewModel.cs
index 6413cd780..ce05c30ab 100644
--- a/src/AspNetIdentity/host/Models/AccountViewModels/LoginViewModel.cs
+++ b/src/AspNetIdentity/host/Models/AccountViewModels/LoginViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.AccountViewModels
+namespace ForgePoint.Identity.Models.AccountViewModels
{
public class LoginViewModel
{
diff --git a/src/AspNetIdentity/host/Models/AccountViewModels/LoginWith2faViewModel.cs b/src/AspNetIdentity/host/Models/AccountViewModels/LoginWith2faViewModel.cs
index 623f8cb7a..69361e005 100644
--- a/src/AspNetIdentity/host/Models/AccountViewModels/LoginWith2faViewModel.cs
+++ b/src/AspNetIdentity/host/Models/AccountViewModels/LoginWith2faViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.AccountViewModels
+namespace ForgePoint.Identity.Models.AccountViewModels
{
public class LoginWith2faViewModel
{
diff --git a/src/AspNetIdentity/host/Models/AccountViewModels/LoginWithRecoveryCodeViewModel.cs b/src/AspNetIdentity/host/Models/AccountViewModels/LoginWithRecoveryCodeViewModel.cs
index 76a2a8a04..37747d561 100644
--- a/src/AspNetIdentity/host/Models/AccountViewModels/LoginWithRecoveryCodeViewModel.cs
+++ b/src/AspNetIdentity/host/Models/AccountViewModels/LoginWithRecoveryCodeViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.AccountViewModels
+namespace ForgePoint.Identity.Models.AccountViewModels
{
public class LoginWithRecoveryCodeViewModel
{
diff --git a/src/AspNetIdentity/host/Models/AccountViewModels/RegisterViewModel.cs b/src/AspNetIdentity/host/Models/AccountViewModels/RegisterViewModel.cs
index 6fa3646ef..f80ffb678 100644
--- a/src/AspNetIdentity/host/Models/AccountViewModels/RegisterViewModel.cs
+++ b/src/AspNetIdentity/host/Models/AccountViewModels/RegisterViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.AccountViewModels
+namespace ForgePoint.Identity.Models.AccountViewModels
{
public class RegisterViewModel
{
diff --git a/src/AspNetIdentity/host/Models/AccountViewModels/ResetPasswordViewModel.cs b/src/AspNetIdentity/host/Models/AccountViewModels/ResetPasswordViewModel.cs
index f56dcbc73..39ec61597 100644
--- a/src/AspNetIdentity/host/Models/AccountViewModels/ResetPasswordViewModel.cs
+++ b/src/AspNetIdentity/host/Models/AccountViewModels/ResetPasswordViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.AccountViewModels
+namespace ForgePoint.Identity.Models.AccountViewModels
{
public class ResetPasswordViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ApplicationUser.cs b/src/AspNetIdentity/host/Models/ApplicationUser.cs
index 3f86aed8d..a8d37c743 100644
--- a/src/AspNetIdentity/host/Models/ApplicationUser.cs
+++ b/src/AspNetIdentity/host/Models/ApplicationUser.cs
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Identity;
-namespace IdentityServer4.Models
+namespace ForgePoint.Identity.Models
{
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/ChangePasswordViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/ChangePasswordViewModel.cs
index 6e56e12d3..f352656ac 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/ChangePasswordViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/ChangePasswordViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class ChangePasswordViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/EnableAuthenticatorViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/EnableAuthenticatorViewModel.cs
index 103eff7e5..678170763 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/EnableAuthenticatorViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/EnableAuthenticatorViewModel.cs
@@ -1,7 +1,7 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class EnableAuthenticatorViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/ExternalLoginsViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/ExternalLoginsViewModel.cs
index 5dfa63c41..473e8dabd 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/ExternalLoginsViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/ExternalLoginsViewModel.cs
@@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Identity;
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class ExternalLoginsViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/GenerateRecoveryCodesViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/GenerateRecoveryCodesViewModel.cs
index 72a0cf09e..306f89fde 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/GenerateRecoveryCodesViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/GenerateRecoveryCodesViewModel.cs
@@ -1,4 +1,4 @@
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class GenerateRecoveryCodesViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/IndexViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/IndexViewModel.cs
index 31aab765c..c60227882 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/IndexViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/IndexViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class IndexViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/RemoveLoginViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/RemoveLoginViewModel.cs
index c64c6d9bb..894d0a00a 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/RemoveLoginViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/RemoveLoginViewModel.cs
@@ -1,4 +1,4 @@
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class RemoveLoginViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/SetPasswordViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/SetPasswordViewModel.cs
index 6a4ea6fd2..4373e4ba4 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/SetPasswordViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/SetPasswordViewModel.cs
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class SetPasswordViewModel
{
diff --git a/src/AspNetIdentity/host/Models/ManageViewModels/TwoFactorAuthenticationViewModel.cs b/src/AspNetIdentity/host/Models/ManageViewModels/TwoFactorAuthenticationViewModel.cs
index 2b99cd45b..06cbfe1e0 100644
--- a/src/AspNetIdentity/host/Models/ManageViewModels/TwoFactorAuthenticationViewModel.cs
+++ b/src/AspNetIdentity/host/Models/ManageViewModels/TwoFactorAuthenticationViewModel.cs
@@ -1,4 +1,4 @@
-namespace IdentityServer4.Models.ManageViewModels
+namespace ForgePoint.Identity.Models.ManageViewModels
{
public class TwoFactorAuthenticationViewModel
{
diff --git a/src/AspNetIdentity/host/Program.cs b/src/AspNetIdentity/host/Program.cs
index 5bb236c5d..1a6e8ba19 100644
--- a/src/AspNetIdentity/host/Program.cs
+++ b/src/AspNetIdentity/host/Program.cs
@@ -16,7 +16,7 @@ public class Program
{
public static int Main(string[] args)
{
- Console.Title = "IdentityServer4.AspNetIdentity";
+ Console.Title = "ForgePoint.Identity.AspNetIdentity";
Activity.DefaultIdFormat = ActivityIdFormat.W3C;
Log.Logger = new LoggerConfiguration()
diff --git a/src/AspNetIdentity/host/Quickstart/Account/AccountController.cs b/src/AspNetIdentity/host/Quickstart/Account/AccountController.cs
index d427b051e..893552af8 100644
--- a/src/AspNetIdentity/host/Quickstart/Account/AccountController.cs
+++ b/src/AspNetIdentity/host/Quickstart/Account/AccountController.cs
@@ -3,12 +3,12 @@
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
@@ -217,7 +217,7 @@ private async Task BuildLoginViewModelAsync(string returnUrl)
var context = await _interaction.GetAuthorizationContextAsync(returnUrl);
if (context?.IdP != null && await _schemeProvider.GetSchemeAsync(context.IdP) != null)
{
- var local = context.IdP == IdentityServer4.IdentityServerConstants.LocalIdentityProvider;
+ var local = context.IdP == ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider;
// this is meant to short circuit the UI and only trigger the one external IdP
var vm = new LoginViewModel
@@ -319,7 +319,7 @@ private async Task BuildLoggedOutViewModelAsync(string logou
if (User?.Identity.IsAuthenticated == true)
{
var idp = User.FindFirst(JwtClaimTypes.IdentityProvider)?.Value;
- if (idp != null && idp != IdentityServer4.IdentityServerConstants.LocalIdentityProvider)
+ if (idp != null && idp != ForgePoint.Identity.IdentityServerConstants.LocalIdentityProvider)
{
var providerSupportsSignout = await HttpContext.GetSchemeSupportsSignOutAsync(idp);
if (providerSupportsSignout)
diff --git a/src/AspNetIdentity/host/Quickstart/Account/ExternalController.cs b/src/AspNetIdentity/host/Quickstart/Account/ExternalController.cs
index 0e66bee4e..d377a41f1 100644
--- a/src/AspNetIdentity/host/Quickstart/Account/ExternalController.cs
+++ b/src/AspNetIdentity/host/Quickstart/Account/ExternalController.cs
@@ -4,11 +4,11 @@
using System.Security.Claims;
using System.Threading.Tasks;
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.Events;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
diff --git a/src/AspNetIdentity/host/Quickstart/Consent/ConsentController.cs b/src/AspNetIdentity/host/Quickstart/Consent/ConsentController.cs
index 6c3aa44c7..d778e8fb5 100644
--- a/src/AspNetIdentity/host/Quickstart/Consent/ConsentController.cs
+++ b/src/AspNetIdentity/host/Quickstart/Consent/ConsentController.cs
@@ -2,16 +2,16 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Events;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Extensions;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Validation;
using System.Collections.Generic;
using System;
@@ -120,7 +120,7 @@ private async Task ProcessConsent(ConsentInputModel model)
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -208,7 +208,7 @@ private ConsentViewModel CreateConsentViewModel(
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -251,7 +251,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/src/AspNetIdentity/host/Quickstart/Consent/ProcessConsentResult.cs b/src/AspNetIdentity/host/Quickstart/Consent/ProcessConsentResult.cs
index 1d331df04..64ba8c794 100644
--- a/src/AspNetIdentity/host/Quickstart/Consent/ProcessConsentResult.cs
+++ b/src/AspNetIdentity/host/Quickstart/Consent/ProcessConsentResult.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/src/AspNetIdentity/host/Quickstart/Device/DeviceController.cs b/src/AspNetIdentity/host/Quickstart/Device/DeviceController.cs
index d7d07aeb9..9ed5ed0f4 100644
--- a/src/AspNetIdentity/host/Quickstart/Device/DeviceController.cs
+++ b/src/AspNetIdentity/host/Quickstart/Device/DeviceController.cs
@@ -6,12 +6,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using IdentityServer4.Configuration;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Configuration;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Validation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
@@ -102,7 +102,7 @@ private async Task ProcessConsent(DeviceAuthorizationInput
var scopes = model.ScopesConsented;
if (ConsentOptions.EnableOfflineAccess == false)
{
- scopes = scopes.Where(x => x != IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess);
+ scopes = scopes.Where(x => x != ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess);
}
grantedConsent = new ConsentResponse
@@ -184,7 +184,7 @@ private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, Dev
}
if (ConsentOptions.EnableOfflineAccess && request.ValidatedResources.Resources.OfflineAccess)
{
- apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
+ apiScopes.Add(GetOfflineAccessScope(vm.ScopesConsented.Contains(ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess) || model == null));
}
vm.ApiScopes = apiScopes;
@@ -221,7 +221,7 @@ private ScopeViewModel GetOfflineAccessScope(bool check)
{
return new ScopeViewModel
{
- Value = IdentityServer4.IdentityServerConstants.StandardScopes.OfflineAccess,
+ Value = ForgePoint.Identity.IdentityServerConstants.StandardScopes.OfflineAccess,
DisplayName = ConsentOptions.OfflineAccessDisplayName,
Description = ConsentOptions.OfflineAccessDescription,
Emphasize = true,
diff --git a/src/AspNetIdentity/host/Quickstart/Extensions.cs b/src/AspNetIdentity/host/Quickstart/Extensions.cs
index 6c720b707..60a6ce2bf 100644
--- a/src/AspNetIdentity/host/Quickstart/Extensions.cs
+++ b/src/AspNetIdentity/host/Quickstart/Extensions.cs
@@ -1,5 +1,5 @@
using System;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Mvc;
namespace IdentityServerHost.Quickstart.UI
diff --git a/src/AspNetIdentity/host/Quickstart/Grants/GrantsController.cs b/src/AspNetIdentity/host/Quickstart/Grants/GrantsController.cs
index 128ce5921..195a730de 100644
--- a/src/AspNetIdentity/host/Quickstart/Grants/GrantsController.cs
+++ b/src/AspNetIdentity/host/Quickstart/Grants/GrantsController.cs
@@ -2,15 +2,15 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
-using IdentityServer4.Stores;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Stores;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
-using IdentityServer4.Events;
-using IdentityServer4.Extensions;
+using ForgePoint.Identity.Events;
+using ForgePoint.Identity.Extensions;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/src/AspNetIdentity/host/Quickstart/Home/ErrorViewModel.cs b/src/AspNetIdentity/host/Quickstart/Home/ErrorViewModel.cs
index a29a21a94..46b8b7af1 100644
--- a/src/AspNetIdentity/host/Quickstart/Home/ErrorViewModel.cs
+++ b/src/AspNetIdentity/host/Quickstart/Home/ErrorViewModel.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace IdentityServerHost.Quickstart.UI
{
diff --git a/src/AspNetIdentity/host/Quickstart/Home/HomeController.cs b/src/AspNetIdentity/host/Quickstart/Home/HomeController.cs
index 9cf067895..028af424e 100644
--- a/src/AspNetIdentity/host/Quickstart/Home/HomeController.cs
+++ b/src/AspNetIdentity/host/Quickstart/Home/HomeController.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Services;
+using ForgePoint.Identity.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
diff --git a/src/AspNetIdentity/host/Quickstart/TestUsers.cs b/src/AspNetIdentity/host/Quickstart/TestUsers.cs
index b4d2f821f..fa1df9572 100644
--- a/src/AspNetIdentity/host/Quickstart/TestUsers.cs
+++ b/src/AspNetIdentity/host/Quickstart/TestUsers.cs
@@ -3,7 +3,7 @@
using IdentityModel;
-using IdentityServer4.Test;
+using ForgePoint.Identity.Test;
using System.Collections.Generic;
using System.Security.Claims;
@@ -22,7 +22,7 @@ public class TestUsers
new Claim(JwtClaimTypes.Email, "AliceSmith@email.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://alice.com"),
- new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json)
+ new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", ForgePoint.Identity.IdentityServerConstants.ClaimValueTypes.Json)
}
},
new TestUser{SubjectId = "88421113", Username = "bob", Password = "bob",
@@ -34,7 +34,7 @@ public class TestUsers
new Claim(JwtClaimTypes.Email, "BobSmith@email.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://bob.com"),
- new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json),
+ new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", ForgePoint.Identity.IdentityServerConstants.ClaimValueTypes.Json),
new Claim("location", "somewhere")
}
}
diff --git a/src/AspNetIdentity/host/Startup.cs b/src/AspNetIdentity/host/Startup.cs
index 09af8eba8..7623eaac2 100644
--- a/src/AspNetIdentity/host/Startup.cs
+++ b/src/AspNetIdentity/host/Startup.cs
@@ -6,9 +6,9 @@
using Microsoft.Extensions.DependencyInjection;
using IdentityServerHost.Data;
using IdentityServerHost.Configuration;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.Extensions.Hosting;
-using IdentityServer4;
+using ForgePoint.Identity;
namespace IdentityServerHost
{
diff --git a/src/AspNetIdentity/host/Views/Home/Index.cshtml b/src/AspNetIdentity/host/Views/Home/Index.cshtml
index 36b2bfc3a..1521e3ca5 100644
--- a/src/AspNetIdentity/host/Views/Home/Index.cshtml
+++ b/src/AspNetIdentity/host/Views/Home/Index.cshtml
@@ -1,13 +1,13 @@
@using System.Diagnostics
@{
- var version = FileVersionInfo.GetVersionInfo(typeof(IdentityServer4.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
+ var version = FileVersionInfo.GetVersionInfo(typeof(ForgePoint.Identity.Hosting.IdentityServerMiddleware).Assembly.Location).ProductVersion.Split('+').First();
}
- Welcome to IdentityServer4
+ Welcome to ForgePoint.Identity
(version @version)
@@ -25,8 +25,8 @@
Here are links to the
- source code repository ,
- and ready to use samples .
+ source code repository ,
+ and ready to use samples .
diff --git a/src/AspNetIdentity/host/Views/Shared/_Layout.cshtml b/src/AspNetIdentity/host/Views/Shared/_Layout.cshtml
index 35605f440..402036f0e 100644
--- a/src/AspNetIdentity/host/Views/Shared/_Layout.cshtml
+++ b/src/AspNetIdentity/host/Views/Shared/_Layout.cshtml
@@ -5,7 +5,7 @@
- IdentityServer4
+ ForgePoint.Identity
diff --git a/src/AspNetIdentity/host/Views/Shared/_Nav.cshtml b/src/AspNetIdentity/host/Views/Shared/_Nav.cshtml
index 6ab6b702c..1b3e47536 100644
--- a/src/AspNetIdentity/host/Views/Shared/_Nav.cshtml
+++ b/src/AspNetIdentity/host/Views/Shared/_Nav.cshtml
@@ -1,4 +1,4 @@
-@using IdentityServer4.Extensions
+@using ForgePoint.Identity.Extensions
@{
string name = null;
@@ -13,7 +13,7 @@
- IdentityServer4
+ ForgePoint.Identity
@if (!string.IsNullOrWhiteSpace(name))
diff --git a/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/20200323135751_Users.Designer.cs b/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/20200323135751_Users.Designer.cs
index ff64f223c..0416cd1ec 100644
--- a/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/20200323135751_Users.Designer.cs
+++ b/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/20200323135751_Users.Designer.cs
@@ -21,7 +21,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.Models.ApplicationUser", b =>
+ modelBuilder.Entity("ForgePoint.Identity.Models.ApplicationUser", b =>
{
b.Property("Id")
.HasColumnType("nvarchar(450)");
@@ -228,7 +228,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -237,7 +237,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
{
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -252,7 +252,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -261,7 +261,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
{
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
diff --git a/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/ApplicationDbContextModelSnapshot.cs b/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/ApplicationDbContextModelSnapshot.cs
index 6da3c414a..4c5d5977f 100644
--- a/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/ApplicationDbContextModelSnapshot.cs
+++ b/src/AspNetIdentity/migrations/SqlServer/Migrations/UsersDb/ApplicationDbContextModelSnapshot.cs
@@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.Models.ApplicationUser", b =>
+ modelBuilder.Entity("ForgePoint.Identity.Models.ApplicationUser", b =>
{
b.Property("Id")
.HasColumnType("nvarchar(450)");
@@ -226,7 +226,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
{
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -235,7 +235,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
{
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -250,7 +250,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -259,7 +259,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
{
- b.HasOne("IdentityServer4.Models.ApplicationUser", null)
+ b.HasOne("ForgePoint.Identity.Models.ApplicationUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
diff --git a/src/AspNetIdentity/migrations/SqlServer/SeedData.cs b/src/AspNetIdentity/migrations/SqlServer/SeedData.cs
index 7765bdb92..3381f7c8b 100644
--- a/src/AspNetIdentity/migrations/SqlServer/SeedData.cs
+++ b/src/AspNetIdentity/migrations/SqlServer/SeedData.cs
@@ -7,7 +7,7 @@
using System.Security.Claims;
using IdentityServerHost.Data;
using IdentityModel;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
@@ -44,7 +44,7 @@ public static void EnsureSeedData(IServiceProvider serviceProvider)
new Claim(JwtClaimTypes.Email, "AliceSmith@email.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://alice.com"),
- new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json)
+ new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", ForgePoint.Identity.IdentityServerConstants.ClaimValueTypes.Json)
}).Result;
if (!result.Succeeded)
{
@@ -77,7 +77,7 @@ public static void EnsureSeedData(IServiceProvider serviceProvider)
new Claim(JwtClaimTypes.Email, "BobSmith@email.com"),
new Claim(JwtClaimTypes.EmailVerified, "true", ClaimValueTypes.Boolean),
new Claim(JwtClaimTypes.WebSite, "http://bob.com"),
- new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", IdentityServer4.IdentityServerConstants.ClaimValueTypes.Json),
+ new Claim(JwtClaimTypes.Address, @"{ 'street_address': 'One Hacker Way', 'locality': 'Heidelberg', 'postal_code': 69118, 'country': 'Germany' }", ForgePoint.Identity.IdentityServerConstants.ClaimValueTypes.Json),
new Claim("location", "somewhere")
}).Result;
if (!result.Succeeded)
diff --git a/src/AspNetIdentity/migrations/SqlServer/SqlServer.csproj b/src/AspNetIdentity/migrations/SqlServer/SqlServer.csproj
index 2614da8ab..cda55c39b 100644
--- a/src/AspNetIdentity/migrations/SqlServer/SqlServer.csproj
+++ b/src/AspNetIdentity/migrations/SqlServer/SqlServer.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/src/AspNetIdentity/migrations/SqlServer/Startup.cs b/src/AspNetIdentity/migrations/SqlServer/Startup.cs
index 8bdf5ed4f..1c41fb756 100644
--- a/src/AspNetIdentity/migrations/SqlServer/Startup.cs
+++ b/src/AspNetIdentity/migrations/SqlServer/Startup.cs
@@ -4,7 +4,7 @@
using Microsoft.EntityFrameworkCore;
using IdentityServerHost.Data;
using Microsoft.AspNetCore.Identity;
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
namespace SqlServer
{
diff --git a/src/AspNetIdentity/src/Decorator.cs b/src/AspNetIdentity/src/Decorator.cs
index 2bd2120d0..d35d62d87 100644
--- a/src/AspNetIdentity/src/Decorator.cs
+++ b/src/AspNetIdentity/src/Decorator.cs
@@ -4,7 +4,7 @@
using System;
-namespace IdentityServer4.AspNetIdentity
+namespace ForgePoint.Identity.AspNetIdentity
{
internal class Decorator
{
diff --git a/src/AspNetIdentity/src/IdentityServer4.AspNetIdentity.csproj b/src/AspNetIdentity/src/IdentityServer4.AspNetIdentity.csproj
index fd77a9705..590db689c 100644
--- a/src/AspNetIdentity/src/IdentityServer4.AspNetIdentity.csproj
+++ b/src/AspNetIdentity/src/IdentityServer4.AspNetIdentity.csproj
@@ -1,17 +1,15 @@
- IdentityServer4.AspNetIdentity
- netcoreapp3.1
+ ForgePoint.Identity.AspNetIdentity
+ net8.0;net10.0
- ASP.NET Core Identity Integration for IdentityServer4
- Brock Allen;Dominick Baier
- IdentityServer4.AspNetIdentity
- OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;IdentityServer;ASP.NET Identity
+ ASP.NET Core Identity integration for ForgePoint.Identity
+ ForgePoint.Identity.AspNetIdentity
+ ForgePoint.Identity.AspNetIdentity
+ OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;ForgePoint;IdentityServer4;ASP.NET Identity
icon.jpg
- https://github.com/IdentityServer/IdentityServer4
Apache-2.0
- https://github.com/IdentityServer/IdentityServer4/releases
true
true
@@ -39,7 +37,7 @@
-
+
diff --git a/src/AspNetIdentity/src/IdentityServerBuilderExtensions.cs b/src/AspNetIdentity/src/IdentityServerBuilderExtensions.cs
index 7eaa91355..81033ccf0 100644
--- a/src/AspNetIdentity/src/IdentityServerBuilderExtensions.cs
+++ b/src/AspNetIdentity/src/IdentityServerBuilderExtensions.cs
@@ -5,9 +5,9 @@
using System;
using System.Linq;
using IdentityModel;
-using IdentityServer4;
-using IdentityServer4.AspNetIdentity;
-using IdentityServer4.Configuration;
+using ForgePoint.Identity;
+using ForgePoint.Identity.AspNetIdentity;
+using ForgePoint.Identity.Configuration;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Identity;
diff --git a/src/AspNetIdentity/src/ProfileService.cs b/src/AspNetIdentity/src/ProfileService.cs
index 3460b2853..115efacfc 100644
--- a/src/AspNetIdentity/src/ProfileService.cs
+++ b/src/AspNetIdentity/src/ProfileService.cs
@@ -2,22 +2,22 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Extensions;
-using IdentityServer4.Models;
-using IdentityServer4.Services;
+using ForgePoint.Identity.Extensions;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Services;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Logging;
using System;
using System.Security.Claims;
using System.Threading.Tasks;
-namespace IdentityServer4.AspNetIdentity
+namespace ForgePoint.Identity.AspNetIdentity
{
///
/// IProfileService to integrate with ASP.NET Identity.
///
/// The type of the user.
- ///
+ ///
public class ProfileService : IProfileService
where TUser : class
{
diff --git a/src/AspNetIdentity/src/ResourceOwnerPasswordValidator.cs b/src/AspNetIdentity/src/ResourceOwnerPasswordValidator.cs
index 81a2feac3..c3ba47377 100644
--- a/src/AspNetIdentity/src/ResourceOwnerPasswordValidator.cs
+++ b/src/AspNetIdentity/src/ResourceOwnerPasswordValidator.cs
@@ -2,22 +2,22 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.Models;
-using IdentityServer4.Validation;
+using ForgePoint.Identity.Models;
+using ForgePoint.Identity.Validation;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
using static IdentityModel.OidcConstants;
-using IdentityServer4.Services;
-using IdentityServer4.Events;
+using ForgePoint.Identity.Services;
+using ForgePoint.Identity.Events;
-namespace IdentityServer4.AspNetIdentity
+namespace ForgePoint.Identity.AspNetIdentity
{
///
/// IResourceOwnerPasswordValidator that integrates with ASP.NET Identity.
///
/// The type of the user.
- ///
+ ///
public class ResourceOwnerPasswordValidator : IResourceOwnerPasswordValidator
where TUser : class
{
diff --git a/src/AspNetIdentity/src/SecurityStampValidatorCallback.cs b/src/AspNetIdentity/src/SecurityStampValidatorCallback.cs
index f07ebb0c4..6b433b529 100644
--- a/src/AspNetIdentity/src/SecurityStampValidatorCallback.cs
+++ b/src/AspNetIdentity/src/SecurityStampValidatorCallback.cs
@@ -6,7 +6,7 @@
using System.Threading.Tasks;
using System.Linq;
-namespace IdentityServer4.AspNetIdentity
+namespace ForgePoint.Identity.AspNetIdentity
{
///
/// Implements callback for SecurityStampValidator's OnRefreshingPrincipal event.
diff --git a/src/AspNetIdentity/src/UserClaimsFactory.cs b/src/AspNetIdentity/src/UserClaimsFactory.cs
index 3dc69c7df..b9d622436 100644
--- a/src/AspNetIdentity/src/UserClaimsFactory.cs
+++ b/src/AspNetIdentity/src/UserClaimsFactory.cs
@@ -9,7 +9,7 @@
using System.Security.Claims;
using IdentityModel;
-namespace IdentityServer4.AspNetIdentity
+namespace ForgePoint.Identity.AspNetIdentity
{
internal class UserClaimsFactory : IUserClaimsPrincipalFactory
where TUser : class
diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets
index 292310cb4..9a2746a9a 100644
--- a/src/Directory.Build.targets
+++ b/src/Directory.Build.targets
@@ -1,57 +1,69 @@
- 3.1.0
- 3.1.0
- 3.1.0
-
- 4.1.2-*
+ 10.0
+
+
+ ForgePoint Labs
+ ForgePoint.Identity
+ ForgePoint Labs
+ https://github.com/joneja09/IdentityServer4
+ https://github.com/joneja09/IdentityServer4/releases
+
+ 10.0.0-*
+
+ 8.0.21
+ 10.0.11
+ 10.0.11
+
+ 8.0.21
+ 10.0.11
+ 10.0.11
-
+
-
+
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
@@ -67,4 +79,4 @@
$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).0
-
\ No newline at end of file
+
diff --git a/src/EntityFramework.Storage/README.md b/src/EntityFramework.Storage/README.md
index e9d2088c4..b6507f3fd 100644
--- a/src/EntityFramework.Storage/README.md
+++ b/src/EntityFramework.Storage/README.md
@@ -1,7 +1,7 @@
-# IdentityServer4.EntityFramework.Storage
+# ForgePoint.Identity.EntityFramework.Storage
-IdentityServer4.EntityFramework.Storage is a persistence layer for IdentityServer 4 configuration data that uses EntityFramework as its database abstraction.
+ForgePoint.Identity.EntityFramework.Storage is the Entity Framework Core persistence layer for ForgePoint.Identity configuration and operational data. Namespaces are `ForgePoint.Identity.EntityFramework.*`.
## Issues
-For issues, use the [consolidated IdentityServer4 issue tracker](https://github.com/IdentityServer/IdentityServer4/issues).
+Open issues on this repository.
diff --git a/src/EntityFramework.Storage/build/Program.cs b/src/EntityFramework.Storage/build/Program.cs
index 2900cf309..fa66d252f 100644
--- a/src/EntityFramework.Storage/build/Program.cs
+++ b/src/EntityFramework.Storage/build/Program.cs
@@ -2,6 +2,6 @@
{
partial class Program
{
- private const string Prefix = "EntityFramework.Storage";
+ private const string Prefix = "ForgePoint.Identity.EntityFramework.Storage";
}
}
diff --git a/src/EntityFramework.Storage/build/build.csproj b/src/EntityFramework.Storage/build/build.csproj
index 43c81aaed..f1804320d 100644
--- a/src/EntityFramework.Storage/build/build.csproj
+++ b/src/EntityFramework.Storage/build/build.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net10.0
diff --git a/src/EntityFramework.Storage/host/ConsoleHost/ConsoleHost.csproj b/src/EntityFramework.Storage/host/ConsoleHost/ConsoleHost.csproj
index 9906d5330..bc41d63fe 100644
--- a/src/EntityFramework.Storage/host/ConsoleHost/ConsoleHost.csproj
+++ b/src/EntityFramework.Storage/host/ConsoleHost/ConsoleHost.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net10.0
diff --git a/src/EntityFramework.Storage/host/ConsoleHost/Program.cs b/src/EntityFramework.Storage/host/ConsoleHost/Program.cs
index 1a57e4d5d..91f4abb8e 100644
--- a/src/EntityFramework.Storage/host/ConsoleHost/Program.cs
+++ b/src/EntityFramework.Storage/host/ConsoleHost/Program.cs
@@ -1,9 +1,9 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
-using IdentityServer4.EntityFramework.Storage;
+using ForgePoint.Identity.EntityFramework.Storage;
using Microsoft.EntityFrameworkCore;
-using IdentityServer4.EntityFramework;
+using ForgePoint.Identity.EntityFramework;
namespace ConsoleHost
{
@@ -11,7 +11,7 @@ class Program
{
static void Main(string[] args)
{
- var connectionString = "server=(localdb)\\mssqllocaldb;database=IdentityServer4.EntityFramework-4.0.0;trusted_connection=yes;";
+ var connectionString = "server=(localdb)\\mssqllocaldb;database=ForgePoint.Identity.EntityFramework-4.0.0;trusted_connection=yes;";
var services = new ServiceCollection();
services.AddLogging(b => b.AddConsole().SetMinimumLevel(LogLevel.Trace));
diff --git a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/20200522172542_Config.Designer.cs b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/20200522172542_Config.Designer.cs
index 4b3d817e6..b42d1c318 100644
--- a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/20200522172542_Config.Designer.cs
+++ b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/20200522172542_Config.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -21,7 +21,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -71,7 +71,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -93,7 +93,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -120,7 +120,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -142,7 +142,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -179,7 +179,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -219,7 +219,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -241,7 +241,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -268,7 +268,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.Client", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -426,7 +426,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("Clients");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -453,7 +453,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -475,7 +475,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientCorsOrigins");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -497,7 +497,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientGrantTypes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -519,7 +519,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientIdPRestrictions");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -541,7 +541,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientPostLogoutRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -568,7 +568,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -590,7 +590,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -612,7 +612,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -649,7 +649,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("ClientSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -698,7 +698,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -720,7 +720,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -747,153 +747,153 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("UserClaims")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Properties")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Scopes")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Secrets")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("UserClaims")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("Properties")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Claims")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedCorsOrigins")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedGrantTypes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("IdentityProviderRestrictions")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("PostLogoutRedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Properties")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("RedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedScopes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("ClientSecrets")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("UserClaims")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("Properties")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
diff --git a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/20260826120000_AddRequirePushedAuthorization.cs b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/20260826120000_AddRequirePushedAuthorization.cs
new file mode 100644
index 000000000..e03f0ea89
--- /dev/null
+++ b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/20260826120000_AddRequirePushedAuthorization.cs
@@ -0,0 +1,25 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+namespace SqlServer.Migrations.ConfigurationDb
+{
+ public partial class AddRequirePushedAuthorization : Migration
+ {
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AddColumn(
+ name: "RequirePushedAuthorization",
+ table: "Clients",
+ type: "bit",
+ nullable: false,
+ defaultValue: false);
+ }
+
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropColumn(
+ name: "RequirePushedAuthorization",
+ table: "Clients");
+ }
+ }
+}
diff --git a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
index 1c72a580b..4ea9e8ee7 100644
--- a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
+++ b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -69,7 +69,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -91,7 +91,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -118,7 +118,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -140,7 +140,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -177,7 +177,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiResourceSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -217,7 +217,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -239,7 +239,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -266,7 +266,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ApiScopeProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.Client", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.Client", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -400,6 +400,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.Property("RequireRequestObject")
.HasColumnType("bit");
+ b.Property("RequirePushedAuthorization")
+ .HasColumnType("bit");
+
b.Property("SlidingRefreshTokenLifetime")
.HasColumnType("int");
@@ -424,7 +427,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("Clients");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -451,7 +454,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -473,7 +476,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientCorsOrigins");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -495,7 +498,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientGrantTypes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -517,7 +520,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientIdPRestrictions");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -539,7 +542,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientPostLogoutRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -566,7 +569,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -588,7 +591,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientRedirectUris");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -610,7 +613,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientScopes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -647,7 +650,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("ClientSecrets");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResource", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -696,7 +699,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResources");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -718,7 +721,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceClaims");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
@@ -745,153 +748,153 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("IdentityResourceProperties");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("UserClaims")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Properties")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Scopes")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiResourceSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiResourceSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiResource", "ApiResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiResource", "ApiResource")
.WithMany("Secrets")
.HasForeignKey("ApiResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("UserClaims")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ApiScopeProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ApiScopeProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.ApiScope", "Scope")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.ApiScope", "Scope")
.WithMany("Properties")
.HasForeignKey("ScopeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Claims")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientCorsOrigin", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientCorsOrigin", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedCorsOrigins")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientGrantType", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientGrantType", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedGrantTypes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientIdPRestriction", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientIdPRestriction", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("IdentityProviderRestrictions")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientPostLogoutRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("PostLogoutRedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("Properties")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientRedirectUri", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientRedirectUri", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("RedirectUris")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientScope", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientScope", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("AllowedScopes")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.ClientSecret", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.ClientSecret", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.Client", "Client")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.Client", "Client")
.WithMany("ClientSecrets")
.HasForeignKey("ClientId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceClaim", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceClaim", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("UserClaims")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.IdentityResourceProperty", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.IdentityResourceProperty", b =>
{
- b.HasOne("IdentityServer4.EntityFramework.Entities.IdentityResource", "IdentityResource")
+ b.HasOne("ForgePoint.Identity.EntityFramework.Entities.IdentityResource", "IdentityResource")
.WithMany("Properties")
.HasForeignKey("IdentityResourceId")
.OnDelete(DeleteBehavior.Cascade)
diff --git a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/20200522172538_Grants.Designer.cs b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/20200522172538_Grants.Designer.cs
index 56449c342..10b454dbb 100644
--- a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/20200522172538_Grants.Designer.cs
+++ b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/20200522172538_Grants.Designer.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -21,7 +21,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property("UserCode")
.HasColumnType("nvarchar(200)")
@@ -71,7 +71,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property("Key")
.HasColumnType("nvarchar(200)")
diff --git a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs
index 0088930d0..d97c6d3f0 100644
--- a/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs
+++ b/src/EntityFramework.Storage/migrations/SqlServer/Migrations/PersistedGrantDb/PersistedGrantDbContextModelSnapshot.cs
@@ -1,6 +1,6 @@
//
using System;
-using IdentityServer4.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.DbContexts;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
@@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.DeviceFlowCodes", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.DeviceFlowCodes", b =>
{
b.Property("UserCode")
.HasColumnType("nvarchar(200)")
@@ -69,7 +69,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
b.ToTable("DeviceCodes");
});
- modelBuilder.Entity("IdentityServer4.EntityFramework.Entities.PersistedGrant", b =>
+ modelBuilder.Entity("ForgePoint.Identity.EntityFramework.Entities.PersistedGrant", b =>
{
b.Property("Key")
.HasColumnType("nvarchar(200)")
diff --git a/src/EntityFramework.Storage/migrations/SqlServer/SqlServer.csproj b/src/EntityFramework.Storage/migrations/SqlServer/SqlServer.csproj
index 5307d2fb9..f82ba5585 100644
--- a/src/EntityFramework.Storage/migrations/SqlServer/SqlServer.csproj
+++ b/src/EntityFramework.Storage/migrations/SqlServer/SqlServer.csproj
@@ -1,7 +1,7 @@
- netcoreapp3.1
+ net10.0
diff --git a/src/EntityFramework.Storage/migrations/SqlServer/Startup.cs b/src/EntityFramework.Storage/migrations/SqlServer/Startup.cs
index a3eb7b03e..bf25492d0 100644
--- a/src/EntityFramework.Storage/migrations/SqlServer/Startup.cs
+++ b/src/EntityFramework.Storage/migrations/SqlServer/Startup.cs
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;
-using IdentityServer4.EntityFramework.Storage;
+using ForgePoint.Identity.EntityFramework.Storage;
using Microsoft.EntityFrameworkCore;
namespace SqlServer
diff --git a/src/EntityFramework.Storage/src/Configuration/ServiceCollectionExtensions.cs b/src/EntityFramework.Storage/src/Configuration/ServiceCollectionExtensions.cs
index 6cded2dc7..037185c23 100644
--- a/src/EntityFramework.Storage/src/Configuration/ServiceCollectionExtensions.cs
+++ b/src/EntityFramework.Storage/src/Configuration/ServiceCollectionExtensions.cs
@@ -2,14 +2,14 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.EntityFramework.DbContexts;
-using IdentityServer4.EntityFramework.Interfaces;
+using ForgePoint.Identity.EntityFramework.DbContexts;
+using ForgePoint.Identity.EntityFramework.Interfaces;
using System;
-using IdentityServer4.EntityFramework.Options;
+using ForgePoint.Identity.EntityFramework.Options;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
-namespace IdentityServer4.EntityFramework.Storage
+namespace ForgePoint.Identity.EntityFramework.Storage
{
///
/// Extension methods to add EF database support to IdentityServer.
diff --git a/src/EntityFramework.Storage/src/DbContexts/ConfigurationDbContext.cs b/src/EntityFramework.Storage/src/DbContexts/ConfigurationDbContext.cs
index 5b8620414..b6defa547 100644
--- a/src/EntityFramework.Storage/src/DbContexts/ConfigurationDbContext.cs
+++ b/src/EntityFramework.Storage/src/DbContexts/ConfigurationDbContext.cs
@@ -3,19 +3,19 @@
using System;
-using IdentityServer4.EntityFramework.Entities;
-using IdentityServer4.EntityFramework.Extensions;
-using IdentityServer4.EntityFramework.Interfaces;
-using IdentityServer4.EntityFramework.Options;
+using ForgePoint.Identity.EntityFramework.Entities;
+using ForgePoint.Identity.EntityFramework.Extensions;
+using ForgePoint.Identity.EntityFramework.Interfaces;
+using ForgePoint.Identity.EntityFramework.Options;
using Microsoft.EntityFrameworkCore;
-namespace IdentityServer4.EntityFramework.DbContexts
+namespace ForgePoint.Identity.EntityFramework.DbContexts
{
///
/// DbContext for the IdentityServer configuration data.
///
///
- ///
+ ///
public class ConfigurationDbContext : ConfigurationDbContext
{
///
@@ -34,7 +34,7 @@ public ConfigurationDbContext(DbContextOptions options,
/// DbContext for the IdentityServer configuration data.
///
///
- ///
+ ///
public class ConfigurationDbContext : DbContext, IConfigurationDbContext
where TContext : DbContext, IConfigurationDbContext
{
diff --git a/src/EntityFramework.Storage/src/DbContexts/PersistedGrantDbContext.cs b/src/EntityFramework.Storage/src/DbContexts/PersistedGrantDbContext.cs
index ccb1e477a..f6261bb0b 100644
--- a/src/EntityFramework.Storage/src/DbContexts/PersistedGrantDbContext.cs
+++ b/src/EntityFramework.Storage/src/DbContexts/PersistedGrantDbContext.cs
@@ -4,19 +4,19 @@
using System;
using System.Threading.Tasks;
-using IdentityServer4.EntityFramework.Entities;
-using IdentityServer4.EntityFramework.Extensions;
-using IdentityServer4.EntityFramework.Interfaces;
-using IdentityServer4.EntityFramework.Options;
+using ForgePoint.Identity.EntityFramework.Entities;
+using ForgePoint.Identity.EntityFramework.Extensions;
+using ForgePoint.Identity.EntityFramework.Interfaces;
+using ForgePoint.Identity.EntityFramework.Options;
using Microsoft.EntityFrameworkCore;
-namespace IdentityServer4.EntityFramework.DbContexts
+namespace ForgePoint.Identity.EntityFramework.DbContexts
{
///
/// DbContext for the IdentityServer operational data.
///
///
- ///
+ ///
public class PersistedGrantDbContext : PersistedGrantDbContext
{
///
@@ -35,7 +35,7 @@ public PersistedGrantDbContext(DbContextOptions options
/// DbContext for the IdentityServer operational data.
///
///
- ///
+ ///
public class PersistedGrantDbContext : DbContext, IPersistedGrantDbContext
where TContext : DbContext, IPersistedGrantDbContext
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiResource.cs b/src/EntityFramework.Storage/src/Entities/ApiResource.cs
index 4b77349ff..89fa4bc78 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiResource.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiResource.cs
@@ -6,7 +6,7 @@
using System;
using System.Collections.Generic;
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiResource
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiResourceClaim.cs b/src/EntityFramework.Storage/src/Entities/ApiResourceClaim.cs
index 7550144a0..f4b71f7af 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiResourceClaim.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiResourceClaim.cs
@@ -3,7 +3,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiResourceClaim : UserClaim
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiResourceProperty.cs b/src/EntityFramework.Storage/src/Entities/ApiResourceProperty.cs
index 4c6633190..d1eaf7958 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiResourceProperty.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiResourceProperty.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiResourceProperty : Property
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiResourceScope.cs b/src/EntityFramework.Storage/src/Entities/ApiResourceScope.cs
index 211626bc9..c4c5e132d 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiResourceScope.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiResourceScope.cs
@@ -3,7 +3,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiResourceScope
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiResourceSecret.cs b/src/EntityFramework.Storage/src/Entities/ApiResourceSecret.cs
index 04b6af43d..b2d6d5d41 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiResourceSecret.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiResourceSecret.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiResourceSecret : Secret
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiScope.cs b/src/EntityFramework.Storage/src/Entities/ApiScope.cs
index 8fe96a630..dc327bae9 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiScope.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiScope.cs
@@ -5,7 +5,7 @@
using System.Collections.Generic;
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiScope
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiScopeClaim.cs b/src/EntityFramework.Storage/src/Entities/ApiScopeClaim.cs
index 52a720c6d..2e72ad247 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiScopeClaim.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiScopeClaim.cs
@@ -3,7 +3,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiScopeClaim : UserClaim
{
diff --git a/src/EntityFramework.Storage/src/Entities/ApiScopeProperty.cs b/src/EntityFramework.Storage/src/Entities/ApiScopeProperty.cs
index 1b0daec3b..e2895f7d4 100644
--- a/src/EntityFramework.Storage/src/Entities/ApiScopeProperty.cs
+++ b/src/EntityFramework.Storage/src/Entities/ApiScopeProperty.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ApiScopeProperty : Property
{
diff --git a/src/EntityFramework.Storage/src/Entities/Client.cs b/src/EntityFramework.Storage/src/Entities/Client.cs
index d23079c33..4a8e823ba 100644
--- a/src/EntityFramework.Storage/src/Entities/Client.cs
+++ b/src/EntityFramework.Storage/src/Entities/Client.cs
@@ -4,11 +4,11 @@
#pragma warning disable 1591
-using IdentityServer4.Models;
+using ForgePoint.Identity.Models;
using System;
using System.Collections.Generic;
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class Client
{
@@ -29,6 +29,7 @@ public class Client
public bool RequirePkce { get; set; } = true;
public bool AllowPlainTextPkce { get; set; }
public bool RequireRequestObject { get; set; }
+ public bool RequirePushedAuthorization { get; set; }
public bool AllowAccessTokensViaBrowser { get; set; }
public List RedirectUris { get; set; }
public List PostLogoutRedirectUris { get; set; }
diff --git a/src/EntityFramework.Storage/src/Entities/ClientClaim.cs b/src/EntityFramework.Storage/src/Entities/ClientClaim.cs
index 19db04dbe..65f571c26 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientClaim.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientClaim.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientClaim
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientCorsOrigin.cs b/src/EntityFramework.Storage/src/Entities/ClientCorsOrigin.cs
index 7c2500705..e019dfed5 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientCorsOrigin.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientCorsOrigin.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientCorsOrigin
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientGrantType.cs b/src/EntityFramework.Storage/src/Entities/ClientGrantType.cs
index b6ba56d42..083ad4ef5 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientGrantType.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientGrantType.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientGrantType
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientIdPRestriction.cs b/src/EntityFramework.Storage/src/Entities/ClientIdPRestriction.cs
index 7a3fdc059..3cf26daec 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientIdPRestriction.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientIdPRestriction.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientIdPRestriction
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientPostLogoutRedirectUri.cs b/src/EntityFramework.Storage/src/Entities/ClientPostLogoutRedirectUri.cs
index 84cf730fc..9eada16e0 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientPostLogoutRedirectUri.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientPostLogoutRedirectUri.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientPostLogoutRedirectUri
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientProperty.cs b/src/EntityFramework.Storage/src/Entities/ClientProperty.cs
index 54599525b..caa09d47f 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientProperty.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientProperty.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientProperty : Property
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientRedirectUri.cs b/src/EntityFramework.Storage/src/Entities/ClientRedirectUri.cs
index f33660a58..b6295c39e 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientRedirectUri.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientRedirectUri.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientRedirectUri
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientScope.cs b/src/EntityFramework.Storage/src/Entities/ClientScope.cs
index 7bb76cc2c..9b53c9db5 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientScope.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientScope.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientScope
{
diff --git a/src/EntityFramework.Storage/src/Entities/ClientSecret.cs b/src/EntityFramework.Storage/src/Entities/ClientSecret.cs
index e6e6f2be2..6c7b19f5d 100644
--- a/src/EntityFramework.Storage/src/Entities/ClientSecret.cs
+++ b/src/EntityFramework.Storage/src/Entities/ClientSecret.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class ClientSecret : Secret
{
diff --git a/src/EntityFramework.Storage/src/Entities/DeviceFlowCodes.cs b/src/EntityFramework.Storage/src/Entities/DeviceFlowCodes.cs
index 07efb4600..741840903 100644
--- a/src/EntityFramework.Storage/src/Entities/DeviceFlowCodes.cs
+++ b/src/EntityFramework.Storage/src/Entities/DeviceFlowCodes.cs
@@ -1,6 +1,6 @@
using System;
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
///
/// Entity for device flow codes
diff --git a/src/EntityFramework.Storage/src/Entities/IdentityResource.cs b/src/EntityFramework.Storage/src/Entities/IdentityResource.cs
index 11ee22b12..bb0f8ca5b 100644
--- a/src/EntityFramework.Storage/src/Entities/IdentityResource.cs
+++ b/src/EntityFramework.Storage/src/Entities/IdentityResource.cs
@@ -7,7 +7,7 @@
using System;
using System.Collections.Generic;
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class IdentityResource
{
diff --git a/src/EntityFramework.Storage/src/Entities/IdentityResourceClaim.cs b/src/EntityFramework.Storage/src/Entities/IdentityResourceClaim.cs
index ae381ae44..70513b960 100644
--- a/src/EntityFramework.Storage/src/Entities/IdentityResourceClaim.cs
+++ b/src/EntityFramework.Storage/src/Entities/IdentityResourceClaim.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class IdentityResourceClaim : UserClaim
{
diff --git a/src/EntityFramework.Storage/src/Entities/IdentityResourceProperty.cs b/src/EntityFramework.Storage/src/Entities/IdentityResourceProperty.cs
index 1af593f08..19cfcf7b3 100644
--- a/src/EntityFramework.Storage/src/Entities/IdentityResourceProperty.cs
+++ b/src/EntityFramework.Storage/src/Entities/IdentityResourceProperty.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class IdentityResourceProperty : Property
{
diff --git a/src/EntityFramework.Storage/src/Entities/PersistedGrant.cs b/src/EntityFramework.Storage/src/Entities/PersistedGrant.cs
index ce5312920..02d3701f9 100644
--- a/src/EntityFramework.Storage/src/Entities/PersistedGrant.cs
+++ b/src/EntityFramework.Storage/src/Entities/PersistedGrant.cs
@@ -6,7 +6,7 @@
using System;
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public class PersistedGrant
{
diff --git a/src/EntityFramework.Storage/src/Entities/Property.cs b/src/EntityFramework.Storage/src/Entities/Property.cs
index d2f1a45aa..0a5f06860 100644
--- a/src/EntityFramework.Storage/src/Entities/Property.cs
+++ b/src/EntityFramework.Storage/src/Entities/Property.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public abstract class Property
{
diff --git a/src/EntityFramework.Storage/src/Entities/Secret.cs b/src/EntityFramework.Storage/src/Entities/Secret.cs
index 86a9e5285..7bd31a157 100644
--- a/src/EntityFramework.Storage/src/Entities/Secret.cs
+++ b/src/EntityFramework.Storage/src/Entities/Secret.cs
@@ -6,7 +6,7 @@
using System;
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public abstract class Secret
{
diff --git a/src/EntityFramework.Storage/src/Entities/UserClaim.cs b/src/EntityFramework.Storage/src/Entities/UserClaim.cs
index 4755ac250..c741e2bcd 100644
--- a/src/EntityFramework.Storage/src/Entities/UserClaim.cs
+++ b/src/EntityFramework.Storage/src/Entities/UserClaim.cs
@@ -4,7 +4,7 @@
#pragma warning disable 1591
-namespace IdentityServer4.EntityFramework.Entities
+namespace ForgePoint.Identity.EntityFramework.Entities
{
public abstract class UserClaim
{
diff --git a/src/EntityFramework.Storage/src/Extensions/ModelBuilderExtensions.cs b/src/EntityFramework.Storage/src/Extensions/ModelBuilderExtensions.cs
index 6f77c7245..dbbe45467 100644
--- a/src/EntityFramework.Storage/src/Extensions/ModelBuilderExtensions.cs
+++ b/src/EntityFramework.Storage/src/Extensions/ModelBuilderExtensions.cs
@@ -2,12 +2,12 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using IdentityServer4.EntityFramework.Entities;
-using IdentityServer4.EntityFramework.Options;
+using ForgePoint.Identity.EntityFramework.Entities;
+using ForgePoint.Identity.EntityFramework.Options;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
-namespace IdentityServer4.EntityFramework.Extensions
+namespace ForgePoint.Identity.EntityFramework.Extensions
{
///
/// Extension methods to define the database schema for the configuration and operational data stores.
diff --git a/src/EntityFramework.Storage/src/IdentityServer4.EntityFramework.Storage.csproj b/src/EntityFramework.Storage/src/IdentityServer4.EntityFramework.Storage.csproj
index cd8a6c576..fdbaf7f65 100644
--- a/src/EntityFramework.Storage/src/IdentityServer4.EntityFramework.Storage.csproj
+++ b/src/EntityFramework.Storage/src/IdentityServer4.EntityFramework.Storage.csproj
@@ -1,16 +1,15 @@
- IdentityServer4.EntityFramework.Storage
- netstandard2.0
+ ForgePoint.Identity.EntityFramework.Storage
+ net8.0;net10.0
- EntityFramework persistence layer for IdentityServer4
- Brock Allen;Dominick Baier;Scott Brady
- OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;IdentityServer;EntityFramework
+ EntityFramework persistence layer for ForgePoint.Identity
+ ForgePoint.Identity.EntityFramework.Storage
+ ForgePoint.Identity.EntityFramework
+ OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;ForgePoint;IdentityServer4;EntityFramework
icon.jpg
- https://github.com/IdentityServer/IdentityServer4
Apache-2.0
- https://github.com/IdentityServer/IdentityServer4/releases
true
true
@@ -32,9 +31,7 @@
-
-
-
+
diff --git a/src/EntityFramework.Storage/src/Interfaces/IConfigurationDbContext.cs b/src/EntityFramework.Storage/src/Interfaces/IConfigurationDbContext.cs
index 81d075f7e..0d5a3886b 100644
--- a/src/EntityFramework.Storage/src/Interfaces/IConfigurationDbContext.cs
+++ b/src/EntityFramework.Storage/src/Interfaces/IConfigurationDbContext.cs
@@ -3,10 +3,10 @@
using System;
-using IdentityServer4.EntityFramework.Entities;
+using ForgePoint.Identity.EntityFramework.Entities;
using Microsoft.EntityFrameworkCore;
-namespace IdentityServer4.EntityFramework.Interfaces
+namespace ForgePoint.Identity.EntityFramework.Interfaces
{
///
/// Abstraction for the configuration context.
diff --git a/src/EntityFramework.Storage/src/Interfaces/IPersistedGrantDbContext.cs b/src/EntityFramework.Storage/src/Interfaces/IPersistedGrantDbContext.cs
index 2a4f1b59d..65b2251e7 100644
--- a/src/EntityFramework.Storage/src/Interfaces/IPersistedGrantDbContext.cs
+++ b/src/EntityFramework.Storage/src/Interfaces/IPersistedGrantDbContext.cs
@@ -4,10 +4,10 @@
using System;
using System.Threading.Tasks;
-using IdentityServer4.EntityFramework.Entities;
+using ForgePoint.Identity.EntityFramework.Entities;
using Microsoft.EntityFrameworkCore;
-namespace IdentityServer4.EntityFramework.Interfaces
+namespace ForgePoint.Identity.EntityFramework.Interfaces
{
///
/// Abstraction for the operational data context.
diff --git a/src/EntityFramework.Storage/src/Mappers/AllowedSigningAlgorithmsConverter.cs b/src/EntityFramework.Storage/src/Mappers/AllowedSigningAlgorithmsConverter.cs
index bdc8eff9f..f6224bd34 100644
--- a/src/EntityFramework.Storage/src/Mappers/AllowedSigningAlgorithmsConverter.cs
+++ b/src/EntityFramework.Storage/src/Mappers/AllowedSigningAlgorithmsConverter.cs
@@ -5,26 +5,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using AutoMapper;
-namespace IdentityServer4.EntityFramework.Mappers
+namespace ForgePoint.Identity.EntityFramework.Mappers
{
- class AllowedSigningAlgorithmsConverter :
- IValueConverter, string>,
- IValueConverter>
+ internal static class AllowedSigningAlgorithmsConverter
{
- public static AllowedSigningAlgorithmsConverter Converter = new AllowedSigningAlgorithmsConverter();
-
- public string Convert(ICollection sourceMember, ResolutionContext context)
+ public static string Convert(ICollection sourceMember)
{
if (sourceMember == null || !sourceMember.Any())
{
return null;
}
+
return sourceMember.Aggregate((x, y) => $"{x},{y}");
}
- public ICollection Convert(string sourceMember, ResolutionContext context)
+ public static ICollection Convert(string sourceMember)
{
var list = new HashSet();
if (!String.IsNullOrWhiteSpace(sourceMember))
diff --git a/src/EntityFramework.Storage/src/Mappers/ApiResourceMapperProfile.cs b/src/EntityFramework.Storage/src/Mappers/ApiResourceMapperProfile.cs
deleted file mode 100644
index 96a8d110c..000000000
--- a/src/EntityFramework.Storage/src/Mappers/ApiResourceMapperProfile.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-
-
-using System.Collections.Generic;
-using AutoMapper;
-
-namespace IdentityServer4.EntityFramework.Mappers
-{
- ///
- /// Defines entity/model mapping for API resources.
- ///
- ///
- public class ApiResourceMapperProfile : Profile
- {
- ///
- ///
- ///
- public ApiResourceMapperProfile()
- {
- CreateMap>()
- .ReverseMap();
-
- CreateMap(MemberList.Destination)
- .ConstructUsing(src => new Models.ApiResource())
- .ForMember(x => x.ApiSecrets, opts => opts.MapFrom(x => x.Secrets))
- .ForMember(x=>x.AllowedAccessTokenSigningAlgorithms, opts => opts.ConvertUsing(AllowedSigningAlgorithmsConverter.Converter, x=>x.AllowedAccessTokenSigningAlgorithms))
- .ReverseMap()
- .ForMember(x => x.AllowedAccessTokenSigningAlgorithms, opts => opts.ConvertUsing(AllowedSigningAlgorithmsConverter.Converter, x => x.AllowedAccessTokenSigningAlgorithms));
-
- CreateMap()
- .ConstructUsing(x => x.Type)
- .ReverseMap()
- .ForMember(dest => dest.Type, opt => opt.MapFrom(src => src));
-
- CreateMap(MemberList.Destination)
- .ForMember(dest => dest.Type, opt => opt.Condition(srs => srs != null))
- .ReverseMap();
-
- CreateMap()
- .ConstructUsing(x => x.Scope)
- .ReverseMap()
- .ForMember(dest => dest.Scope, opt => opt.MapFrom(src => src));
- }
- }
-}
diff --git a/src/EntityFramework.Storage/src/Mappers/ApiResourceMappers.cs b/src/EntityFramework.Storage/src/Mappers/ApiResourceMappers.cs
index 0501a5f3d..fbcb105ca 100644
--- a/src/EntityFramework.Storage/src/Mappers/ApiResourceMappers.cs
+++ b/src/EntityFramework.Storage/src/Mappers/ApiResourceMappers.cs
@@ -2,24 +2,15 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using AutoMapper;
-using IdentityServer4.EntityFramework.Entities;
+using ForgePoint.Identity.EntityFramework.Entities;
-namespace IdentityServer4.EntityFramework.Mappers
+namespace ForgePoint.Identity.EntityFramework.Mappers
{
///
/// Extension methods to map to/from entity/model for API resources.
///
public static class ApiResourceMappers
{
- static ApiResourceMappers()
- {
- Mapper = new MapperConfiguration(cfg => cfg.AddProfile())
- .CreateMapper();
- }
-
- internal static IMapper Mapper { get; }
-
///
/// Maps an entity to a model.
///
@@ -27,7 +18,24 @@ static ApiResourceMappers()
///
public static Models.ApiResource ToModel(this ApiResource entity)
{
- return entity == null ? null : Mapper.Map(entity);
+ if (entity == null)
+ {
+ return null;
+ }
+
+ return new Models.ApiResource
+ {
+ Enabled = entity.Enabled,
+ Name = entity.Name,
+ DisplayName = entity.DisplayName,
+ Description = entity.Description,
+ ShowInDiscoveryDocument = entity.ShowInDiscoveryDocument,
+ AllowedAccessTokenSigningAlgorithms = AllowedSigningAlgorithmsConverter.Convert(entity.AllowedAccessTokenSigningAlgorithms),
+ ApiSecrets = MappingHelpers.MapList(entity.Secrets, MappingHelpers.ToSecret),
+ Scopes = MappingHelpers.MapStrings(entity.Scopes, x => x.Scope),
+ UserClaims = MappingHelpers.MapStrings(entity.UserClaims, x => x.Type),
+ Properties = MappingHelpers.MapProperties(entity.Properties)
+ };
}
///
@@ -37,7 +45,24 @@ public static Models.ApiResource ToModel(this ApiResource entity)
///
public static ApiResource ToEntity(this Models.ApiResource model)
{
- return model == null ? null : Mapper.Map(model);
+ if (model == null)
+ {
+ return null;
+ }
+
+ return new ApiResource
+ {
+ Enabled = model.Enabled,
+ Name = model.Name,
+ DisplayName = model.DisplayName,
+ Description = model.Description,
+ ShowInDiscoveryDocument = model.ShowInDiscoveryDocument,
+ AllowedAccessTokenSigningAlgorithms = AllowedSigningAlgorithmsConverter.Convert(model.AllowedAccessTokenSigningAlgorithms),
+ Secrets = MappingHelpers.MapList(model.ApiSecrets, MappingHelpers.ToEntitySecret),
+ Scopes = MappingHelpers.MapList(model.Scopes, x => new ApiResourceScope { Scope = x }),
+ UserClaims = MappingHelpers.MapList(model.UserClaims, x => new ApiResourceClaim { Type = x }),
+ Properties = MappingHelpers.MapProperties(model.Properties)
+ };
}
}
-}
\ No newline at end of file
+}
diff --git a/src/EntityFramework.Storage/src/Mappers/ClientMapperProfile.cs b/src/EntityFramework.Storage/src/Mappers/ClientMapperProfile.cs
deleted file mode 100644
index 6e5304687..000000000
--- a/src/EntityFramework.Storage/src/Mappers/ClientMapperProfile.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-
-
-using System.Collections.Generic;
-using System.Security.Claims;
-using AutoMapper;
-using IdentityServer4.Models;
-
-namespace IdentityServer4.EntityFramework.Mappers
-{
- ///
- /// Defines entity/model mapping for clients.
- ///
- ///
- public class ClientMapperProfile : Profile
- {
- ///
- ///
- /// {ClientMapperProfile}
- ///
- ///
- public ClientMapperProfile()
- {
- CreateMap>()
- .ReverseMap();
-
- CreateMap()
- .ForMember(dest => dest.ProtocolType, opt => opt.Condition(srs => srs != null))
- .ForMember(x => x.AllowedIdentityTokenSigningAlgorithms, opts => opts.ConvertUsing(AllowedSigningAlgorithmsConverter.Converter, x => x.AllowedIdentityTokenSigningAlgorithms))
- .ReverseMap()
- .ForMember(x => x.AllowedIdentityTokenSigningAlgorithms, opts => opts.ConvertUsing(AllowedSigningAlgorithmsConverter.Converter, x => x.AllowedIdentityTokenSigningAlgorithms));
-
- CreateMap()
- .ConstructUsing(src => src.Origin)
- .ReverseMap()
- .ForMember(dest => dest.Origin, opt => opt.MapFrom(src => src));
-
- CreateMap()
- .ConstructUsing(src => src.Provider)
- .ReverseMap()
- .ForMember(dest => dest.Provider, opt => opt.MapFrom(src => src));
-
- CreateMap(MemberList.None)
- .ConstructUsing(src => new ClientClaim(src.Type, src.Value, ClaimValueTypes.String))
- .ReverseMap();
-
- CreateMap()
- .ConstructUsing(src => src.Scope)
- .ReverseMap()
- .ForMember(dest => dest.Scope, opt => opt.MapFrom(src => src));
-
- CreateMap()
- .ConstructUsing(src => src.PostLogoutRedirectUri)
- .ReverseMap()
- .ForMember(dest => dest.PostLogoutRedirectUri, opt => opt.MapFrom(src => src));
-
- CreateMap()
- .ConstructUsing(src => src.RedirectUri)
- .ReverseMap()
- .ForMember(dest => dest.RedirectUri, opt => opt.MapFrom(src => src));
-
- CreateMap()
- .ConstructUsing(src => src.GrantType)
- .ReverseMap()
- .ForMember(dest => dest.GrantType, opt => opt.MapFrom(src => src));
-
- CreateMap(MemberList.Destination)
- .ForMember(dest => dest.Type, opt => opt.Condition(srs => srs != null))
- .ReverseMap();
- }
- }
-}
\ No newline at end of file
diff --git a/src/EntityFramework.Storage/src/Mappers/ClientMappers.cs b/src/EntityFramework.Storage/src/Mappers/ClientMappers.cs
index c12b3bda4..90551b483 100644
--- a/src/EntityFramework.Storage/src/Mappers/ClientMappers.cs
+++ b/src/EntityFramework.Storage/src/Mappers/ClientMappers.cs
@@ -2,23 +2,18 @@
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-using AutoMapper;
+using System;
+using System.Linq;
+using System.Security.Claims;
+using ForgePoint.Identity.Models;
-namespace IdentityServer4.EntityFramework.Mappers
+namespace ForgePoint.Identity.EntityFramework.Mappers
{
///
/// Extension methods to map to/from entity/model for clients.
///
public static class ClientMappers
{
- static ClientMappers()
- {
- Mapper = new MapperConfiguration(cfg => cfg.AddProfile())
- .CreateMapper();
- }
-
- internal static IMapper Mapper { get; }
-
///
/// Maps an entity to a model.
///
@@ -26,7 +21,71 @@ static ClientMappers()
///
public static Models.Client ToModel(this Entities.Client entity)
{
- return Mapper.Map(entity);
+ if (entity == null)
+ {
+ return null;
+ }
+
+ var model = new Models.Client
+ {
+ Enabled = entity.Enabled,
+ ClientId = entity.ClientId,
+ RequireClientSecret = entity.RequireClientSecret,
+ ClientName = entity.ClientName,
+ Description = entity.Description,
+ ClientUri = entity.ClientUri,
+ LogoUri = entity.LogoUri,
+ RequireConsent = entity.RequireConsent,
+ AllowRememberConsent = entity.AllowRememberConsent,
+ AlwaysIncludeUserClaimsInIdToken = entity.AlwaysIncludeUserClaimsInIdToken,
+ AllowedGrantTypes = entity.AllowedGrantTypes == null
+ ? Array.Empty()
+ : entity.AllowedGrantTypes.Select(x => x.GrantType).ToList(),
+ RequirePkce = entity.RequirePkce,
+ AllowPlainTextPkce = entity.AllowPlainTextPkce,
+ RequireRequestObject = entity.RequireRequestObject,
+ RequirePushedAuthorization = entity.RequirePushedAuthorization,
+ AllowAccessTokensViaBrowser = entity.AllowAccessTokensViaBrowser,
+ RedirectUris = MappingHelpers.MapStrings(entity.RedirectUris, x => x.RedirectUri),
+ PostLogoutRedirectUris = MappingHelpers.MapStrings(entity.PostLogoutRedirectUris, x => x.PostLogoutRedirectUri),
+ FrontChannelLogoutUri = entity.FrontChannelLogoutUri,
+ FrontChannelLogoutSessionRequired = entity.FrontChannelLogoutSessionRequired,
+ BackChannelLogoutUri = entity.BackChannelLogoutUri,
+ BackChannelLogoutSessionRequired = entity.BackChannelLogoutSessionRequired,
+ AllowOfflineAccess = entity.AllowOfflineAccess,
+ AllowedScopes = MappingHelpers.MapStrings(entity.AllowedScopes, x => x.Scope),
+ IdentityTokenLifetime = entity.IdentityTokenLifetime,
+ AllowedIdentityTokenSigningAlgorithms = AllowedSigningAlgorithmsConverter.Convert(entity.AllowedIdentityTokenSigningAlgorithms),
+ AccessTokenLifetime = entity.AccessTokenLifetime,
+ AuthorizationCodeLifetime = entity.AuthorizationCodeLifetime,
+ ConsentLifetime = entity.ConsentLifetime,
+ AbsoluteRefreshTokenLifetime = entity.AbsoluteRefreshTokenLifetime,
+ SlidingRefreshTokenLifetime = entity.SlidingRefreshTokenLifetime,
+ RefreshTokenUsage = (TokenUsage)entity.RefreshTokenUsage,
+ UpdateAccessTokenClaimsOnRefresh = entity.UpdateAccessTokenClaimsOnRefresh,
+ RefreshTokenExpiration = (TokenExpiration)entity.RefreshTokenExpiration,
+ AccessTokenType = (AccessTokenType)entity.AccessTokenType,
+ EnableLocalLogin = entity.EnableLocalLogin,
+ IdentityProviderRestrictions = MappingHelpers.MapStrings(entity.IdentityProviderRestrictions, x => x.Provider),
+ IncludeJwtId = entity.IncludeJwtId,
+ Claims = MappingHelpers.MapList(entity.Claims, x => new ClientClaim(x.Type, x.Value, ClaimValueTypes.String)),
+ AlwaysSendClientClaims = entity.AlwaysSendClientClaims,
+ ClientClaimsPrefix = entity.ClientClaimsPrefix,
+ PairWiseSubjectSalt = entity.PairWiseSubjectSalt,
+ AllowedCorsOrigins = MappingHelpers.MapStrings(entity.AllowedCorsOrigins, x => x.Origin),
+ Properties = MappingHelpers.MapProperties(entity.Properties),
+ UserSsoLifetime = entity.UserSsoLifetime,
+ UserCodeType = entity.UserCodeType,
+ DeviceCodeLifetime = entity.DeviceCodeLifetime,
+ ClientSecrets = MappingHelpers.MapList(entity.ClientSecrets, MappingHelpers.ToSecret)
+ };
+
+ if (entity.ProtocolType != null)
+ {
+ model.ProtocolType = entity.ProtocolType;
+ }
+
+ return model;
}
///
@@ -36,7 +95,63 @@ public static Models.Client ToModel(this Entities.Client entity)
///
public static Entities.Client ToEntity(this Models.Client model)
{
- return Mapper.Map(model);
+ if (model == null)
+ {
+ return null;
+ }
+
+ return new Entities.Client
+ {
+ Enabled = model.Enabled,
+ ClientId = model.ClientId,
+ ProtocolType = model.ProtocolType,
+ RequireClientSecret = model.RequireClientSecret,
+ ClientName = model.ClientName,
+ Description = model.Description,
+ ClientUri = model.ClientUri,
+ LogoUri = model.LogoUri,
+ RequireConsent = model.RequireConsent,
+ AllowRememberConsent = model.AllowRememberConsent,
+ AlwaysIncludeUserClaimsInIdToken = model.AlwaysIncludeUserClaimsInIdToken,
+ AllowedGrantTypes = MappingHelpers.MapList(model.AllowedGrantTypes, x => new Entities.ClientGrantType { GrantType = x }),
+ RequirePkce = model.RequirePkce,
+ AllowPlainTextPkce = model.AllowPlainTextPkce,
+ RequireRequestObject = model.RequireRequestObject,
+ RequirePushedAuthorization = model.RequirePushedAuthorization,
+ AllowAccessTokensViaBrowser = model.AllowAccessTokensViaBrowser,
+ RedirectUris = MappingHelpers.MapList(model.RedirectUris, x => new Entities.ClientRedirectUri { RedirectUri = x }),
+ PostLogoutRedirectUris = MappingHelpers.MapList(model.PostLogoutRedirectUris, x => new Entities.ClientPostLogoutRedirectUri { PostLogoutRedirectUri = x }),
+ FrontChannelLogoutUri = model.FrontChannelLogoutUri,
+ FrontChannelLogoutSessionRequired = model.FrontChannelLogoutSessionRequired,
+ BackChannelLogoutUri = model.BackChannelLogoutUri,
+ BackChannelLogoutSessionRequired = model.BackChannelLogoutSessionRequired,
+ AllowOfflineAccess = model.AllowOfflineAccess,
+ AllowedScopes = MappingHelpers.MapList(model.AllowedScopes, x => new Entities.ClientScope { Scope = x }),
+ IdentityTokenLifetime = model.IdentityTokenLifetime,
+ AllowedIdentityTokenSigningAlgorithms = AllowedSigningAlgorithmsConverter.Convert(model.AllowedIdentityTokenSigningAlgorithms),
+ AccessTokenLifetime = model.AccessTokenLifetime,
+ AuthorizationCodeLifetime = model.AuthorizationCodeLifetime,
+ ConsentLifetime = model.ConsentLifetime,
+ AbsoluteRefreshTokenLifetime = model.AbsoluteRefreshTokenLifetime,
+ SlidingRefreshTokenLifetime = model.SlidingRefreshTokenLifetime,
+ RefreshTokenUsage = (int)model.RefreshTokenUsage,
+ UpdateAccessTokenClaimsOnRefresh = model.UpdateAccessTokenClaimsOnRefresh,
+ RefreshTokenExpiration = (int)model.RefreshTokenExpiration,
+ AccessTokenType = (int)model.AccessTokenType,
+ EnableLocalLogin = model.EnableLocalLogin,
+ IdentityProviderRestrictions = MappingHelpers.MapList(model.IdentityProviderRestrictions, x => new Entities.ClientIdPRestriction { Provider = x }),
+ IncludeJwtId = model.IncludeJwtId,
+ Claims = MappingHelpers.MapList(model.Claims, x => new Entities.ClientClaim { Type = x.Type, Value = x.Value }),
+ AlwaysSendClientClaims = model.AlwaysSendClientClaims,
+ ClientClaimsPrefix = model.ClientClaimsPrefix,
+ PairWiseSubjectSalt = model.PairWiseSubjectSalt,
+ AllowedCorsOrigins = MappingHelpers.MapList(model.AllowedCorsOrigins, x => new Entities.ClientCorsOrigin { Origin = x }),
+ Properties = MappingHelpers.MapProperties(model.Properties),
+ UserSsoLifetime = model.UserSsoLifetime,
+ UserCodeType = model.UserCodeType,
+ DeviceCodeLifetime = model.DeviceCodeLifetime,
+ ClientSecrets = MappingHelpers.MapList(model.ClientSecrets, MappingHelpers.ToEntitySecret)
+ };
}
}
-}
\ No newline at end of file
+}
diff --git a/src/EntityFramework.Storage/src/Mappers/IdentityResourceMapperProfile.cs b/src/EntityFramework.Storage/src/Mappers/IdentityResourceMapperProfile.cs
deleted file mode 100644
index 85e109a7c..000000000
--- a/src/EntityFramework.Storage/src/Mappers/IdentityResourceMapperProfile.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
-// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
-
-
-using System.Collections.Generic;
-using AutoMapper;
-
-namespace IdentityServer4.EntityFramework.Mappers
-{
- ///