Refactor authentication system to use MongoDB
Some checks failed
Publish Container / publish (push) Has been cancelled
Some checks failed
Publish Container / publish (push) Has been cancelled
- Removed Entity Framework Core identity schema and related migrations. - Introduced MongoDB-based authentication service with user seeding functionality. - Updated Program.cs to configure authentication and authorization using cookies. - Created new Login.razor component for user login interface. - Added RedirectToLogin component for handling unauthorized access. - Updated Dockerfile and docker-compose files for development and production environments. - Removed SQLite connection strings and related configurations. - Added MongoDB connection settings in appsettings.json and Docker configurations. - Implemented IMongoAuthService interface and MongoAuthService class for user management. - Created MongoAuthUser model for MongoDB user representation.
This commit is contained in:
parent
7a919491d2
commit
7029e374cc
64 changed files with 338 additions and 3556 deletions
|
|
@ -7,14 +7,11 @@ services:
|
|||
environment:
|
||||
ASPNETCORE_ENVIRONMENT: Production
|
||||
UseHttpsRedirection: "false"
|
||||
ConnectionStrings__DefaultConnection: Data Source=/app/Data/app.db;Cache=Shared
|
||||
MongoDb__ConnectionString: mongodb://mongo:27017
|
||||
ports:
|
||||
- "8002:8080"
|
||||
depends_on:
|
||||
- mongo
|
||||
volumes:
|
||||
- worktracker_data:/app/Data
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/ >/dev/null 2>&1 || exit 1"]
|
||||
|
|
@ -29,5 +26,4 @@ services:
|
|||
- mongo_data:/data/db
|
||||
|
||||
volumes:
|
||||
worktracker_data:
|
||||
mongo_data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue