Skip to content

Refactor conditional logic for handling application endpoints in GraphMinimalPermissionsGuidancePlugin. Closes #1605#1606

Open
waldekmastykarz wants to merge 2 commits intodotnet:mainfrom
waldekmastykarz:fix/1605-app-permissions-missing-endpoints
Open

Refactor conditional logic for handling application endpoints in GraphMinimalPermissionsGuidancePlugin. Closes #1605#1606
waldekmastykarz wants to merge 2 commits intodotnet:mainfrom
waldekmastykarz:fix/1605-app-permissions-missing-endpoints

Conversation

@waldekmastykarz
Copy link
Copy Markdown
Collaborator

Refactor conditional logic for handling application endpoints in GraphMinimalPermissionsGuidancePlugin. Closes #1605

@waldekmastykarz waldekmastykarz requested a review from a team as a code owner March 28, 2026 09:41
Copilot AI review requested due to automatic review settings March 28, 2026 09:41
@waldekmastykarz waldekmastykarz added the pr-bugfix Fixes a bug label Mar 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors how GraphMinimalPermissionsGuidancePlugin collects application endpoints during recording playback so it evaluates minimal application permissions across all captured Graph requests (aligning with issue #1605’s “only evaluated GET /groups” symptom).

Changes:

  • Ensures application endpoints are always added to applicationEndpoints for each application-typed request.
  • Keeps the “roles to evaluate” capture behavior (set once from the first request that contains roles), while decoupling it from endpoint collection.

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

Labels

pr-bugfix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: GraphMinimalPermissionsGuidancePlugin - Couldn't determine minimal permissions for the following URLs: - (No permissions found.)

2 participants