Files
k-template/cargo-generate.toml
Gabriel Kaszewski 9ca4eeddb4 feat: enhance application state management with cookie support
- Added cookie key to AppState for managing session cookies.
- Updated AppState initialization to derive cookie key from configuration.
- Removed session-based authentication option from cargo-generate prompts.
- Refactored JWT authentication logic to improve clarity and error handling.
- Updated password validation to align with NIST recommendations (minimum length increased).
- Removed unused session store implementation and related code.
- Improved error handling in user repository for unique constraint violations.
- Refactored OIDC service to include state management for authentication flow.
- Cleaned up dependencies in Cargo.toml and Cargo.toml.template for clarity and efficiency.
2026-03-05 01:28:27 +01:00

42 lines
836 B
TOML

[template]
cargo_generate_version = ">=0.21.0"
ignore = [
".git",
"target",
".idea",
".vscode",
"data.db",
"api/Cargo.toml",
"infra/Cargo.toml",
]
[filenames]
"api/Cargo.toml.template" = "api/Cargo.toml"
"infra/Cargo.toml.template" = "infra/Cargo.toml"
[placeholders.project_name]
type = "string"
prompt = "Project name"
[placeholders.database]
type = "string"
prompt = "Database type"
choices = ["sqlite", "postgres"]
default = "sqlite"
[placeholders.auth_jwt]
type = "bool"
prompt = "Enable JWT authentication (Bearer tokens)?"
default = true
[placeholders.auth_oidc]
type = "bool"
prompt = "Enable OIDC integration (Login with Google, etc.)?"
default = true
[conditional.'database == "sqlite"']
ignore = ["migrations_postgres"]
[conditional.'database == "postgres"']
ignore = ["migrations_sqlite"]