Skip to content

Conversation

gavinbarron
Copy link
Contributor

refactors existing proxy features into plugins:

  • RandomErrorPlugin : Provides random failures
  • MockResponsePlugin: provide pre-configured responses
  • SelectGuidancePlugin: detects missing $select on GET requests
  • SdkGuidancePlugin: detects raw REST calls without sdk-version headers

Adds a basic console logger to decouple console writing from plugin code allowing for richer formatting in future with minimal plugin changes
Adds an abstractions library to provide shared code and interface definitions for communication between the proxy and plugins
Adds common utilities to ProxyUtils class
Renames a few classes to better align to their usage

gavinbarron and others added 15 commits December 20, 2022 14:16
…cified hander, or no handler are provided in config
Bumps [Microsoft.Extensions.Configuration.Binder](https://github.com/dotnet/runtime) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/dotnet/runtime/releases)
- [Commits](dotnet/runtime@v7.0.0...v7.0.1)

---
updated-dependencies:
- dependency-name: Microsoft.Extensions.Configuration.Binder
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Changes the AAD App name and adds information about multitenant setup.
Co-authored-by: Gavin Barron <gavinbarron@microsoft.com>
refactor: move failure to plug-in handler

fixed missing using

WIP

refactored select guidance to plugin

updated sample with better null handling
orgainized proxy-plugins project
added namespace to abstractons and plugin projects
converted console.write calls to use an ILogger
added common response headers uitl to ProxyUtils
@gavinbarron gavinbarron requested a review from a team as a code owner January 4, 2023 00:16
Copy link
Collaborator

@waldekmastykarz waldekmastykarz left a comment

Choose a reason for hiding this comment

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

So cool to see this taking shape! Let's do a few adjustments before we proceed.

@gavinbarron gavinbarron linked an issue Jan 5, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow supporting plugins to let third parties add functionality
2 participants