Welcome to the Duende Identity Server Basic repository! This project provides a basic implementation of the Duende Identity Server using .NET 6 and SQLite. It serves as a starting point for integrating identity management and authorization into your applications.
- Duende Identity Server: Secure your applications with an OAuth 2.0 and OpenID Connect server.
- .NET 6: Leverage the latest features and improvements of .NET 6.
- SQLite: Simplified database setup with SQLite. Ideal for development and testing.
-
Clone the repository
git clone https://github.com/zeecorleone/duende-identityserver-basic.git cd duende-identityserver-basic
-
Restore dependencies
dotnet restore
-
Update the database
dotnet ef database update
-
Run the application
dotnet run
This project uses SQLite for simplicity, but you can configure it to use any other database by installing the appropriate dependencies and updating the configuration.
-
Install the SQL Server package
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
-
Update the
appsettings.json
with your SQL Server connection string:"ConnectionStrings": { "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=IdentityServerDb;Trusted_Connection=True;MultipleActiveResultSets=true" }
-
Modify
Program.cs
to use SQL Server:.... services.AddDbContext<ApplicationDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
Once the application is running, you can access the Identity Server at https://localhost:7015
.
Contributions are welcome! Please submit a pull request or open an issue to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for more details.