Microsoft Dev Proxy v0.15.0 Released: Simulating CRUD APIs with Microsoft Entra Protection

2024-03-25 07:36:06

Original link

Microsoft has recently announced a number of enhancements aimed at streamlining the app development process.Dev Proxy v0.15.0 releaseddid. Among the many improvements, the most notable are:Goes intoIt is now possible to mock APIs protected by . Other additions include OAuth flow simulation, improved monitoring URLs, improved CORS support, and custom commands.

To explain to readers who are not familiar with it,Dev ProxyFormerly known as Microsoft 365 Developer Proxy, it functions as a command-line tool utilized to mimic real API behavior during app testing. Dev Proxy allows developers to create resilient applications that are better at managing errors and limitations.

One of the important features added in this update is:Simulate a CRUD API secured with Microsoft EntraIt is a function to do. Through the CrudApiPlugin Dev Proxy, developers can now emulate CRUD APIs.

As previously reported, this version expands support for simulating Microsoft Entra-protected APIs. Developers can define CRUD APIs to validate aspects such as access token user, issuer, permissions, and token lifetime.

(Dev Proxy that simulates CRUD APIs protected by Microsoft Entra: from the Microsoft 365 Platform blog)

Furthermore, with the introduction of EntraMockResponsePlugin, a common security measure in Microsoft’s cloud-based applications,Simulating OAuth flowis now possible. This plugin facilitates emulation of the authentication process and ensures compatibility with the Microsoft Identity library.

In addition to the published blog post, the author of DevProxyWaldek MastykarzMr,PnP Weekly PodcastHe made a guest appearance and shared some interesting facts about the tool. InfoQ summarizes it as follows:

In a development environment, you often create components that never ship. Our approach allows simulation and allows us to control aspects such as token validation. We aim to mimic reality and optimize your workflow without wasting time on unnecessary components.

Additionally, monitoring functions have been strengthened.urlsToWatchAdded options.This feature allows developers to directly from the command lineMonitored URLThe efficiency of preset management and API activity monitoring has been improved. This version also supports the ability to monitor only URLs on specific ports.

(Specify the URL to monitor from the command line (Source: Microsoft 365 Platform Blog)

This update also addresses customization needs and allows developers toMultiple instances of the same pluginNow you can add it. This flexibility makes it possible to create multiple CRUD APIs and mocks for different use cases, making the development environment more adaptable.

Additionally, this version has enhanced throttling simulation capabilities,GenericRandomErrorPlugin orGraphRandomErrorPluginExtension plugins like now allow you to set the retry-after value for throttled responses.This allows developers todiverse scenariosIt is possible to simulate this and observe the impact on application performance.

Also, regarding CORS (Cross-Origin Resource Sharing), this release includesRateLimitingPlugin RetryAfterPluginIncluded and exposes information on cross-origin request throttling.

Additionally, developers have options to not register as a system-wide proxy or to not install an SSL certificate.Starting Dev ProxyI have more control over how I do things. These options provide flexibility to users, especially in Docker container environments.

Additionally, Dev Proxy iscustom commandand new features independent of request monitoring can now be introduced via plugins.

Regarding the changes,Multiple instances of the same pluginThis includes tweaking the way plugin options are displayed to make it easier to add plugins, fixing tracking of throttled requests, and fixing logging procedures including renaming logging levels. As reported, these primarily affect users using custom plugins.

Finally, this release also includes various bug fixes and performance improvements.For more information about the changes, see the details about this new release.GitHub release notesPlease refer.

About the author

Almir Vuk

see more less


1711353047
#Microsoft #Dev #Proxy #v0.15 #Entraprotected #APIs #mocked #updates #InfoQ

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.