This is a port of the well-known IdentityServer4 library to .NET 8.0. This library provides an implementation of OpenID Connect and OAuth 2.0 server for ASP.NET Core.
Previously, the library worked on .NET Core 3.1 and did not support newer versions of .NET. This project ensures compatibility with the modern .NET 8.0 ecosystem.
- ✅ Full compatibility with .NET 8.0
- ✅ OpenID Connect and OAuth 2.0 support
- ✅ ASP.NET Core Identity integration
- ✅ Entity Framework Core support for data storage
- ✅ Built-in caching support
- ✅ Ready-to-use In-Memory storage providers
- ✅ Mutual TLS (mTLS) support
- ✅ Local API Authentication integration
The project includes the following main components:
- IdentityServer4 - Main identity server library
- IdentityServer4.Storage - Data storage abstractions
- IdentityServer4.AspNetIdentity - ASP.NET Core Identity integration
- IdentityServer4.EntityFramework - Entity Framework provider
- IdentityServer4.EntityFramework.Storage - EF Core data models
- Client and resource management
- User authentication and authorization
- Token issuance and validation
- Support for various grant types
- Token introspection
- Token revocation
- Device Flow for devices with limited interface
- .NET 8.0 or higher
- ASP.NET Core 8.0
- Compatible database (when using Entity Framework)
# Clone repository
git clone https://github.com/artistotless/IdentityServer4Net8.git
cd IdentityServer4Net8dotnet buildAdd IdentityServer to your ASP.NET Core project:
public void ConfigureServices(IServiceCollection services)
{
services.AddIdentityServer()
.AddInMemoryClients(Config.Clients)
.AddInMemoryApiScopes(Config.ApiScopes)
.AddInMemoryIdentityResources(Config.IdentityResources)
.AddDeveloperSigningCredential();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseIdentityServer();
}When migrating from the original IdentityServer4 version on .NET Core 3.1:
- Update target framework to .NET 8.0
- Update ASP.NET Core dependencies to version 8.0
- Check configuration - most settings remain unchanged
- Test all endpoints and functionality
For detailed documentation on using IdentityServer4, refer to:
If you have questions or issues:
- Create an Issue in this repository
- Refer to the original project documentation
- Check compatibility with .NET 8.0
This project inherits the license from the original IdentityServer4. See the LICENSE file for details.
We welcome contributions to the project:
- Fork the repository
- Create a branch for your feature
- Commit your changes
- Submit a Pull Request
Important: This project is an unofficial port of IdentityServer4 to .NET 8.0. Use it at your own risk in production environments.