Skip to content

MIGRATION_A365.md uses old observability scope — needs update to new OtelWrite scope #105

Description

@fpfp100

Summary

The migration guide's AgenticTokenCache custom instance example still uses the old Power Platform scope. The scope for the ingestion service has changed but this is not mentioned anywhere in the migration guide.

Bug

In MIGRATION_A365.md section 6 — Custom instance:

const tokenCache = new AgenticTokenCache({
  authScopes: ["https://api.powerplatform.com/.default"],
});

This uses the old scope. The correct scopes are:

Auth flow New scope
OBO (on-behalf-of) api://9b975845-388f-4429-889e-eab1ef63949c/Agent365.Observability.OtelWrite
S2S (service-to-service) api://9b975845-388f-4429-889e-eab1ef63949c

Ask

  1. Update the AgenticTokenCache example to use the correct new scope
  2. Add a migration step documenting the scope change — this is a breaking change that users need to know about
  3. A365 SDK provide public method to retreive scope for OBO. This should continue to be supported.

References

No activity

Activity on this issue will appear here.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions