# DEB-312: Feature Flag implementation for Login type (SSO or Basic Auth)

> **Jira:** [DEB-312](https://divami.atlassian.net/browse/DEB-312)  
> **Source Report:** [20260315.md](../../reports/jira/20260315.md)

- **Status:** Start
- **Assignee:** Unassigned
- **Priority:** Medium
- **Created:** 2026-03-13T15:06:58.240+0530
- **Updated:** 2026-03-13T15:09:18.235+0530

**Description:**

Configuration file/Configuration DB to be implemented and that should be readbale by frontend.

- Implement Configuration Table in DB
- Implement CRUD operation APIs to configuration Table

**Architecture Diagram:**

```mermaid
flowchart LR
    subgraph ConfigDB[Configuration DB]
        A[config_flags table<br/>key - value - scope]
    end
    B[Admin: CRUD API<br/>POST/PUT/DELETE /config] --> ConfigDB
    C[GET /config/flags] --> ConfigDB
    ConfigDB --> D[Frontend reads flags<br/>on app load]
    D --> E{login_type flag}
    E -->|sso| F[Render Google OAuth UI]
    E -->|basic| G[Render Username/Password UI]
    E -->|both| H[Render both options]
```
