Skip to content

[CoR] ENTRA_CLIENT_ID is deployed as a zero-value placeholder causing Tasks API authentication failure #1856

Description

@v-ruizh

OS: Win11 x64
Build Version: 0.12.8-alpha.0
VS Code Version: Version: 1.137.0

Repro Steps:

  1. Create and deploy a CoR project using the following prompt:
    a to-do list web app with a REST API, PostgreSQL database, Microsoft Entra authentication, and Azure deployment
  2. Complete the workflow and deploy the application to Azure.
  3. Open the deployed application.

Expect:
A valid Microsoft Entra client ID should be configured during deployment so the deployed application can authenticate successfully and access the Tasks API.

Actual:
The application loads, but the Tasks page shows:

Tasks could not be refreshed 
Microsoft Entra configuration is missing
Image

More Info:

  1. The generated Container App is configured with: ENTRA_CLIENT_ID=00000000-0000-0000-0000-000000000000
  2. Backend logs show:
GET /api/tasks
401 Unauthorized
  1. The deployment itself succeeds and the backend health endpoint reports healthy:
GET /api/health
200 OK

However, the application is not functional because requests to the protected Tasks API return 401 Unauthorized.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AT-CTICreated by CTI teamCoRCopilot on Rails

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions