Copilot agent ai plugin suddendly stopped working?

Francesco Pirani 0 Reputation points
2025-03-06T10:43:22.6466667+00:00

Dear Microsoft Team, I encountered a problem that suddenly appeared. I have an AI plugin agent set up, and until yesterday, the authentication flow was working flawlessly. Today, however, the login no longer functions. Specifically, when I click the login button...

image (1)

Nothing happens.

The status code i return from clicking the button is the following:

User's image

So it doesn't seem a request problem.

I changed nothing in my appPackage json files so no changes were pushed to trigger this problem.

For context, here's how i set up my auth flow:

agent ai plugin json file:

    "runtimes": [
        {
            "type": "OpenApi",
            "auth": {
                "type": "OAuthPluginVault",
                "reference_id": "${{OAUTH2AUTHCODE_CONFIGURATION_ID}}"
            },
            "spec": {
                "url": "apiSpecificationFile/openapi.json"
            },
            "run_for_functions": [
                "*"
            ]
        }
    ]

openapi spec json file:

  "openapi": "3.0.1",
  "info": {
    "version": "1.0.0",
    "title": "Gaia Intranet Manager API",
    "description": "API to manage and handle the intranet analytics data"
  },
  "servers": [
    {
      "url": "${{OPENAPI_SERVER_URL}}",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "oAuth2AuthCode": [
        "api://auth-${{TEAMS_SSO_ID}}/${{AAD_APP_CLIENT_ID}}/${{AAD_APP_SCOPE}}"
      ]
    }
  ],


  "components": {
    "securitySchemes": {
      "oAuth2AuthCode": {
        "type": "oauth2",
        "description": "OAuth configuration for the analytics plugin service",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.microsoftonline.com/${{AAD_APP_TENANT_ID}}/oauth2/v2.0/authorize",
            "tokenUrl": "https://login.microsoftonline.com/${{AAD_APP_TENANT_ID}}/oauth2/v2.0/token",
            "scopes": {
              "api://auth-${{TEAMS_SSO_ID}}/${{AAD_APP_CLIENT_ID}}/${{AAD_APP_SCOPE}}": "Access analytics plugin API as the user"
            }
          }
        }
      }
    },

This is the auth part of my json files.

As said before, yesterday the auth was functioning flawlessly, this morning it doesn't work anymore.

Thank you so much for your help

Microsoft Copilot
Microsoft Copilot
Microsoft terminology for a universal copilot interface.
650 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.