# DEB-313: Implement Login UI with Feature Flag Support

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

- **Status:** Start
- **Assignee:** Manisha Gundapuneedi
- **Priority:** Medium
- **Created:** 2026-03-13T15:09:35.500+0530
- **Updated:** 2026-03-13T16:19:20.721+0530

**Description:**

- Should be able to support Google OAuth and Username/Password authentication
- Login should be configurable

Implement Login UI with Feature Flag Support for Google OAuth and Username/Password Authentication

**Architecture Diagram:**

```mermaid
flowchart TD
    A[User opens Login Page] --> B[UI reads Feature Flag<br/>from Config API]
    B --> C{Login Type Flag}
    C -->|SSO / Google OAuth| D[Show Google Sign-In button]
    C -->|Basic Auth| E[Show Email + Password form]
    C -->|Both enabled| F[Show both options]
    D --> G[OAuth redirect → Google]
    E --> H[POST /auth/login]
    F --> G & H
    G --> I[Receive JWT from backend]
    H --> I
    I --> J[Store token & redirect to Dashboard]
```
