ASP.NET Core comes with ready to use Cross Origin Resource Sharing support. The usage is very straightforward and nicely described in documentation, but what if there is a need to reconfigure the policy at runtime?
Article for Daj się Poznać competition describing plugin mechanism created in ASP.NET Core with help of Autofac DI container
Daj się poznać 2017 2728 dni, 21 godzin, 11 minut temu 203 źrodło rozwiń
Article for Daj się Poznać competition describing settings mechanism created with ASP.NET Core, Entity Framework Core and Sqlite
Daj się poznać 2017 2728 dni, 21 godzin, 11 minut temu 44 źrodło rozwiń
Jak skonfigurować DI dla biblioteki Middleware w ASP.NET Core
Daj się poznać 2017 2734 dni, 12 godzin, 51 minut temu 87 źrodło rozwiń
For couple last days, I worked on gifty to catch up a little bit. My primal task was to introduce JWT authentication to my microservices hosted by Nancy. That’s the topic for next post but today, I’ll describe the proper steps to fully integrate Nancy with Autofac and ASP.NET Core since it’s not that obvious (at least wasn’t for me) and took me way to much time to finally do it. So, I hope that this one will help you one way or another. Installing pa...
Daj się poznać 2017 2733 dni, 2 godziny, 36 minut temu 78 źrodło rozwiń
In today’s post, I’d like to present a dozen of minimalistic samples that you can make use of within ASP.NET Core application. Starting from simple things like options, through middleware, databases and even Nginx or Docker. These samples are part of the upcoming event “Thursday with .NET” that I’ll be part of on Thursday 20.04.2017.
In the previous post I showed how to implement cookie authentication in ASP.NET Core Web Api, this time I want to show you how to implement token authentication using JWT token. I strongly recommend you to read my previous post about cookie authentication, because it will be simplier to understand, besides source code showed below have some parts described in the previous post.JWT structure JWT stands for JSON Web Token. It is small, self-contained JSON. It contains credentials, claims and other informa...
Daj się poznać 2017 2737 dni, 6 godzin, 47 minut temu 105 źrodło rozwiń
This time I want to focus on user authentication. In APIs we can use different methods for user authentication like: -cookie Authentication -basic Authentication (not recommended, slow and insecure) -token Authentication In this post I want to show you how to implement cookie authentication in ASP.NET Core Web API.
Daj się poznać 2017 2739 dni, 8 godzin, 41 minut temu 82 źrodło rozwiń
[EN] Użycie Vue.js i ASP.NET Core do ładowania treści dynamicznie na stronę
Daj się poznać 2017 2741 dni, 21 godzin, 10 minut temu 241 źrodło rozwiń
Nice journey behind us! You did really great job to be here with us in episode 6. We started this course with introduction where we tried to explain goal, rules and technology stack. Next we did core architecture of our application, few first features and we showed you basic concepts...
Recently I've been playing a lot with HTTP/2 and with ASP.NET Core but I didn't had chance to play with both at once. I've decided it's time to change that. Unfortunately the direct HTTP/2 support for Kestrel is still in backlog. Luckily Kestrel is not the only HTTP server implementation for ASP.NET Core.
General update on TeamScreen project that I'm doing for Get Notice competition
Daj się poznać 2017 2749 dni, 9 godzin, 1 minutę temu 19 źrodło rozwiń
Tworzenie i wysyłanie dynamicznej listy z widoku do controllera - ASP.NET Core MVC
Daj się poznać 2017 2750 dni, 22 godziny, 19 minut temu 105 źrodło rozwiń
Jak przekazywać dane pomiędzy midllewares w ASP.NET Core Pipeline
Daj się poznać 2017 2753 dni, 20 godzin, 7 minut temu 52 źrodło rozwiń
First bunch of features are done and it’s time to look at very important matter – security. As long as we create apps only for ourselves we don’t care about it. Sometimes we release one of those applications somewhere on the Internet and we still don’t care about security. Why? We forgot o...
Pewnie niektórych z Was zastanawia, dlaczego obrazek do postu przedstawia ptaka? Kestrel, to po polsku Pustułka zwyczajna– nazwa ptaka drapieżnego z rodziny sokołowatych – tego przedstawionego na zdjęciu. Cytując wikipedię, polska nazwa ptaka wywodzi się od rosyjskiego „pustoj”, co oznacza „głupi”. W tym artykule dowiecie się o możliwościach implementacji serwerów w ASP.NET Core, czyli Kestrel i WebListener.
Architektura 2752 dni, 20 godzin, 6 minut temu 238 źrodło rozwiń
Description of what you can actually find in empty ASP.NET Core project and how it differs from ASP.NET MVC
Daj się poznać 2017 2756 dni, 22 godziny, 28 minut temu 63 źrodło rozwiń
I created few projects in my solution. I have models, services, tests and webApi project. I added LoginController which uses Services, but it uses it by interfaces. I need to use dependency injection to resolve it for me. I decided to add Autofac. It is IoC container which allow us to register all types and it’s implementations, to inject specific types for us. In the last year I wrote post how to add Autofac to ASP.NET MVC app, but post is in Polish and adding Autofac to .NET Core app is slighty differe...
Daj się poznać 2017 2757 dni, 7 godzin, 6 minut temu 82 źrodło rozwiń
How many times you almost pushed some sensitive data to public repo? I have to admit, it’s one of my nightmares since I heard about crawlers occuping github and searching for credit cards data, API credentials and so on. But it looks like this problem is over, at least for .Net Core developers. And it is because of one simple tool provided by Microsoft - Secret Manager. Let me show you how to manage it by Visual Studio interface!
Daj się poznać 2017 2760 dni, 9 godzin, 16 minut temu 64 źrodło rozwiń
I’m not a big enthusiast of hard-coded values in my apps, mostly because of three things. First, it’s really annoying to change their value if necessary (especially if one is used in many places). Of course, we can use some „find and replace tool” but to be honest I don’t fully trust them. Another thing is that in many cases we have absolutely no idea what do they represent. Let’s say we have the following of code: PaymentService.Create(or...
Daj się poznać 2017 2761 dni, 3 godziny, 46 minut temu 51 źrodło rozwiń