zeecorleone / duende-identityserver-basic

dotnet 6 app, demonstrating basic setup of Duende Identity Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duende-identityserver-basic Logo SQLite License

Introduction

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.

Features

  • 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.

Getting Started

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/zeecorleone/duende-identityserver-basic.git
    cd duende-identityserver-basic
  2. Restore dependencies

    dotnet restore
  3. Update the database

    dotnet ef database update
  4. Run the application

    dotnet run

Configuration

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.

For example, to use SQL Server, you would:

  1. Install the SQL Server package

    dotnet add package Microsoft.EntityFrameworkCore.SqlServer
  2. Update the appsettings.json with your SQL Server connection string:

    "ConnectionStrings": {
        "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=IdentityServerDb;Trusted_Connection=True;MultipleActiveResultSets=true"
    }
  3. Modify Program.cs to use SQL Server:

    ....
    services.AddDbContext<ApplicationDbContext>(options =>
                options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));

Usage

Once the application is running, you can access the Identity Server at https://localhost:7015.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss what you would like to change.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

dotnet 6 app, demonstrating basic setup of Duende Identity Server

License:MIT License


Languages

Language:C# 57.0%Language:Less 15.2%Language:CSS 14.6%Language:HTML 12.9%Language:SCSS 0.2%Language:JavaScript 0.1%