Skip to content

Difference in webApplicationInfo.resource Configuration and Its Impact on microsoftTeams.authentication.getAuthToken() Behavior #2644

Open
@asith-w

Description

Issue:

Below are two configurations of the webApplicationInfo property from the Teams app manifest:

Configuration 1:

{
  "webApplicationInfo": { 
    "id": "1234b47a-0d54-0000-1111-92940bc85c11",
    "resource": "api://mydmn.net/botid-1234b47a-0d54-0000-1111-92940bc85c11"
  }
}

Configuration 2:

{
  "webApplicationInfo": { 
    "id": "1234b47a-0d54-0000-1111-92940bc85c11",
    "resource": "api://mydmn.net/1234b47a-0d54-0000-1111-92940bc85c11"
  }
}

Key Question:

The difference between the two configurations lies in the resource property:

  1. Configuration 1 includes the botid- prefix in the resource value.
  2. Configuration 2 excludes the botid- prefix.

Why does the microsoftTeams.authentication.getAuthToken() function behave differently for these configurations, as described in GitHub Issue #2196?

Request:
could anybody clarify the difference between these two configurations and explain how the resource value affects authentication behavior. Additionally, it would be helpful to understand the expected behavior for both scenarios and the correct way to configure the webApplicationInfo property to ensure consistent functionality.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions