Microsoft Releases Dev Proxy 0.21 |
Written by Kay Ewbank |
Tuesday, 08 October 2024 |
Microsoft has released an update to Dev Proxy, its command-line API simulator. The updated version, v0.21, adds the ability to simulate authentication and authorization using API keys and OAuth2 among other improvements. The Dev Proxy API simulator is based on the Microsoft 365 Developer Proxy, and it can be used to simulate API errors to let developers make sure their apps can deal with problems arising when APIs fail. Dev Proxy lets developers test what happens when an API fails, to make sure the app wouldn't lose customer data. The simulator can also be used to make sure the app could handle API rate limits to avoid getting throttled, and also to ensure the app can handle slow APIs, so that you can implement the necessary affordances, and make your app more user-friendly. Dev Proxy is a command-line tool that works on any platform. Because it intercepts network requests, it works with any type of app and tech stack. Dev Proxy is open source and free to use. The main improvement to the updated version is the inclusion of a new plugin (AuthPlugin) that can be used to add authentication and authorization capabilities to any URL. The add-in makes the tool more useful for developers who want to use service-level authentication and authorization in their apps. The ability to use Microsoft's service-level authentication and authorization features means developers can configure security for their APIs without having to write custom code. However, when when securing APIs using service-level authentication and authorization, security settings are enforced only when those APIs are published to Microsoft's services. Running the APIs locally means they're anonymous, and developers can't test the end-to-end flow including security when integrating the APIs with other services. The new AuthPlugin plugin can be used to add authentication and authorization capabilities to any URL. So if a developer is re building an API on Azure Functions, and wants to verify API (access) key security on their local machine, they will now be able to use Dev Proxy to apply access key security with the specified keys to the Azure Function running on their local machine. The new release also adds the ability to generate JWT tokens for testing. This means developers working with APIs secured with OAuth2, can set up a JWT access token to call and test the API. This release also includes a new version of Dev Proxy Toolkit, a Visual Studio Code extension that can be used to create and update configuration files. This version adds the ability to start and control Dev Proxy from Visual Studio Code, along with added commands and editor actions to start and stop Dev Proxy, to start and stop recording, and to raise a mock request. The new release also has support for code snippets in JSONC files, and has new snippets for AuthPlugin. Dev Proxy 0.21 is available now. More InformationRelated ArticlesMicrosoft Graph Developer Proxy In Preview To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
Last Updated ( Tuesday, 08 October 2024 ) |