Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ COPY ["src/SharedKernel/SharedKernel.csproj", "src/SharedKernel/"]
RUN dotnet restore "./src/Web.Api/Web.Api.csproj"
COPY . .
WORKDIR "/src/src/Web.Api"
RUN dotnet dev-certs https --clean
RUN dotnet dev-certs https
RUN dotnet build "./Web.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build

# This stage is used to publish the service project to be copied to the final stage
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AuthServer
# AuthServer with Admin Panel

A modern, production-ready authentication and authorization server built with .NET 9, implementing Clean Architecture principles, CQRS pattern, and Domain-Driven Design (DDD).
A modern, production-ready authentication and authorization server built with .NET 10, implementing Clean Architecture principles, CQRS pattern, and Domain-Driven Design (DDD).

## 🏗️ Architecture

Expand Down Expand Up @@ -70,7 +70,7 @@ This project follows **Clean Architecture** with clear separation of concerns ac

## 📋 Prerequisites

- [.NET 9 SDK](https://dotnet.microsoft.com/download/dotnet/9.0)
- [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0)
- [Docker Desktop](https://www.docker.com/products/docker-desktop) (for containerized deployment)
- [PostgreSQL 17](https://www.postgresql.org/download/) (if running without Docker)

Expand Down Expand Up @@ -267,4 +267,4 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file

---

**Built with ❤️ using .NET 9**
**Built with ❤️ using .NET 9**
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ services:
- ConnectionStrings__Database=Host=localhost;Port=5432;Database=authserver;Username=postgres;Password=pass1234
- FrontendLoginUrl=https://auth.dapplesoft.com/login # Login page of auth server
- IssuerUrl=https://authapi.dapplesoft.com # Auth server Backend Url
- AuthServer_AlwaysHTTPS=false
- Cors__AllowedOrigins__0=http://localhost:4200
- Cors__AllowedOrigins__1=https://localhost:4200
- Cors__AllowedOrigins__2=http://localhost:40033
- Cors__AllowedOrigins__3=https://localhost:40003
- Cors__AllowedOrigins__4=http://auth.dapplesoft.com
- Cors__AllowedOrigins__5=https://auth.dapplesoft.com
- Cors__AllowedOrigins__6=http://authapi.dapplesoft.com
- Cors__AllowedOrigins__7=https://authapi.dapplesoft.com
- KnownProxies__0=127.0.0.1
- KnownProxies__1=172.18.240.206
- KnownProxies__2=172.19.0.1
networks:
- auth-network
restart: unless-stopped
Expand Down
7 changes: 5 additions & 2 deletions docker-local-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ services:
ConnectionStrings__Database: Host=postgres;Port=5432;Database=clean-architecture;Username=postgres;Password=1234
ASPNETCORE_URLS: http://+:8080;http://+:8081
FrontendLoginUrl: https://localhost:4200/login # Login page of auth server
IssuerUrl: http://localhost:5001 # Auth server Backend Url
Jwt__Secret: YOUR_SECURE_GENERATED_SECRET
IssuerUrl: https://localhost:5001 # Auth server Backend Url
AuthServer_AlwaysHTTPS: false
Cors__AllowedOrigins__0: "http://localhost:4200"
Cors__AllowedOrigins__1: "https://localhost:4200"
Cors__AllowedOrigins__2: "http://localhost:40033"
Expand All @@ -23,6 +23,9 @@ services:
Cors__AllowedOrigins__5: "https://auth.dapplesoft.com"
Cors__AllowedOrigins__6: "http://authapi.dapplesoft.com"
Cors__AllowedOrigins__7: "https://authapi.dapplesoft.com"
KnownProxies__0: "127.0.0.1"
KnownProxies__1: "172.18.240.206"
KnownProxies__2: "172.19.0.1"
restart: on-failure
depends_on:
postgres:
Expand Down
16 changes: 0 additions & 16 deletions src/Application/Abstractions/Data/IApplicationDbContext.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
using Domain.Areas;
using Domain.AuditLogs;
using Domain.Businesses;
using Domain.BusinessMembers;
using Domain.Countries;
using Domain.Customers;
using Domain.Districts;
using Domain.EmailVerification;
using Domain.Localities;
using Domain.MfaLogs;
using Domain.MfaSettings;
using Domain.Otps;
using Domain.PasswordResets;
using Domain.Permissions;
using Domain.Regions;
using Domain.RolePermissions;
using Domain.Roles;
using Domain.SmsConfigs;
using Domain.SmtpConfigs;
using Domain.Todos;
using Domain.UserLoginHistories;
using Domain.UserProfiles;
using Domain.Users;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.ChangeTracking;
Expand All @@ -30,19 +22,11 @@ public interface IApplicationDbContext
{
DbSet<User> Users { get; }
DbSet<EmailVerifications> EmailVerifications { get; }
DbSet<PasswordReset> PasswordReset { get; }
DbSet<TodoItem> TodoItems { get; }
DbSet<Customer> Customers { get; }
DbSet<Permission> Permissions { get; }
DbSet<RolePermission> RolePermissions { get; }
DbSet<Role> Roles { get; }
DbSet<UserLoginHistory> UserLoginHistory { get; }
DbSet<UserProfile> UserProfile { get; }
DbSet<Business> Businesses { get; }
DbSet<BusinessMember> BusinessMembers { get; }
DbSet<AuditLog> AuditLogs { get; }
DbSet<MfaLog> MfaLogs { get; }
DbSet<MfaSetting> MfaSettings { get; }
DbSet<Otp> Otp { get; }
DbSet<SmtpConfig> SmtpConfig { get; }
DbSet<SmsConfig> SmsConfig { get; }
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions src/Application/BusinessMembers/Get/BusinessMemberResponse.cs

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions src/Application/BusinessMembers/GetById/BusinessMemberResponse.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading