Posts in "ASP.NET 5"

One-time secured API requests

Nowadays, the HTTP APIs act as gateways for petabytes of data and some chunk of it might actually require enhanced access rules. For example, you could create a link that allows the user to download the file only once, and within such link you would find a token.
I was in a need of creating such solution for my open source project Warden – a specialized, one-time link that can be used fetch the configuration object from the API.
It turned out to be fairly straightforward to implement the most basic version of such behavior.

Continue reading

Warden Web Panel released

Today is the day, in which the Warden Web Panel has been finally released. It is available in the Azure cloud, where you can create a free account and use it immediately, or, if you wish to host it on your own, just clone the repository and run the web application – it’s actually quite easy to get it up and running on localhost in a matter of minutes (or even seconds).
In the post details, you can find more information about the idea behind the Web Panel UI and what can be done do with this tool in terms of managing the monitoring workspace, displaying the real-time statistics or browsing the historical data.

Continue reading

HTTP API integration for Warden

This is the latest (for the time being) integration available for the Warden, that provides an access to the custom HTTP API (with any URL that you’d like to use ) to which you may send a POST request including (or not) a body, headers etc.
Additionally, you can make use of the available extensions that work out of the box with Warden Web Panel running the Azure cloud, which can be also hosted on your own (by cloning the repository) . If you’re interested in such feature, especially in case you’d like to make your own webhooks or just use the Web Panel – take a look at the whole article.

Continue reading

Post/Redirect/Get with new ASP.NET 5 & MVC 6

Post/Redirect/Get or PRG in short is a common pattern used amongst many web applications, that was designed to prevent duplicate submissions of the forms. Not using such pattern may result e.g. in multiple transactions by POSTing the same form twice, which is something that we definitely do not want to see in our applications. Although, it’s quite easy to be implemented in it’s purest form, it’s a little bit more tricky if we want to save the input data provided by the user (let’s say the form has a lot of fields, and regular redirect would reset it to its initial state since it renders a brand new view). In this post, I’ll present how to add such filters to the MVC application that will both save the input data and also the display the validation errors from the ModelState object.

Continue reading