You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extend MinimalPermissionsGuidancePlugin with scopes to ignore (#1365)
* Add PermissionsToExclude property and initialization
* Move ApiSpecsFolderPath property initialization to dedicated method InitializeApiSpecsFolderPath
* Small code adjustments
* Move GetMethodAndUrl to common convert method ToMethodAndUrl
* Add MethodAndUrl record instead of tuple and MethodAndUrlComparer
* Move MethodAndUrlUtils to GraphUtils unit
* Move common GetRequestsFromBatch and GetTokenizedUrl methods to GraphUtils
* Exclude permissions from excessive list
* Add ExcludedPermissions property to report class
* Add logging of what permissions are excluded
* Add permissionsToExclude to MinimalPermissionsGuidancePlugin config schema
* Update schema only for v1.1.0
* Lower accessibility level to internal for GetMethodAndUrl, GetTokenizedUrl, GetRequestsFromBatch
* Move GetMethodAndUrl func out to MethodAndUrlUtils unit
* Evaluate excessivePermissions and properly initiate flag UsesMinimalPermissions
* Refactor: Remove unused using directives and improve exception handling in MinimalPermissionsGuidancePlugin
---------
Co-authored-by: Waldek Mastykarz <[email protected]>
@@ -177,8 +175,7 @@ public override async Task AfterRecordingStopAsync(RecordingArgs e, Cancellation
177
175
178
176
Logger.LogWarning("This plugin is in preview and may not return the correct results.\r\nPlease review the permissions and test your app before using them in production.\r\nIf you have any feedback, please open an issue at https://aka.ms/devproxy/issue.\r\n");
179
177
180
-
if(Configuration.PermissionsToExcludeis not null&&
Logger.LogWarning("This plugin is in preview and may not return the correct results.\r\nPlease review the permissions and test your app before using them in production.\r\nIf you have any feedback, please open an issue at https://aka.ms/devproxy/issue.\r\n");
117
115
@@ -125,15 +123,15 @@ public override async Task AfterRecordingStopAsync(RecordingArgs e, Cancellation
0 commit comments