asp .net core Jwt Security Token

Issuer and SecurityKey To generate Jwt Security Token in asp.net core, we have to declare variables that are required for the token to be generated based on. Those variables are Issuer and SigningKey, we can put these variables in appsettings.json so we can read it later. https://gist.github.com/gsedubun/4d86dea1c253268de450526d1266e496 JwtBearerAuthentication Now to add jwtbearer middleware, we need … Lanjutkan membaca asp .net core Jwt Security Token

Iklan

how to dockerize asp.net core application

ASP .NET Core To dockerize your existing ASP.NET Core application, you need to install docker first. This article will explain on how to leverage docker-compose.  To do  development inside a docker container, you need to create a docker image. Let's open a terminal and create a directory to put our project files, call it aspnetdocker. Then … Lanjutkan membaca how to dockerize asp.net core application

How to draw a marker on OpenStreetMap

openstreetmap leafletjs

To Use OpenStreetMap and draw marker we can use a javascript library, there’s a lot out there but for this example well use leafletjs.com. It’s open source, mobile friendly and lightweight and has a complete features most developers need. Leafletjs Now head over to the website and follow the quick start tutorial, that should be … Lanjutkan membaca How to draw a marker on OpenStreetMap

Menggunakan SignalR di ASP .NET Core

signalr

SignalR adalah library untuk ASP .Net yang memudahkan developer untuk menambahkan real-time fungsionalitas pada web application. SignalR menambahkan kemampuan web application untuk mem-push konten atau data ke semua atau sebagian client yang sedang terkoneksi tanpa menunggu client tersebut untuk melakukan request terlebih dahulu. Beberapa fungsi real-time yang bisa diimplementasikan menggunakan SignalR adalah notifikasi instan, aplikasi … Lanjutkan membaca Menggunakan SignalR di ASP .NET Core

Angular 2 application with asp.net core API – Part 2

angular

The angular template from dotnet cli is using the angular v4.4.6 LTS version. So we cannot use the latest angular v.5 APIs. After creating the angular components in earlier post now we need to write each component, if you use VSCode or Visual Studio this will be easy because the editor will provide intellisense for … Lanjutkan membaca Angular 2 application with asp.net core API – Part 2

IIS: improve websites security by adding http headers

One way to improve asp.net MVC website security is to add http custom headers on IIS. To do that you need to open IIS by typing inetmgr on Run, then open the particular website on the Connections pane on the left side and click on Http Response Headers inside the website's Home pane. After that … Lanjutkan membaca IIS: improve websites security by adding http headers

IIS Server: Acces To Path is Denied when export xls file

When trying to create excel files while exporting and you need to save it on the folder inside a web server. Often times you get an error like this : means that your websites application pool doesn't have the rights to Read or Write into  the folder that the website's located. To fix it, you need … Lanjutkan membaca IIS Server: Acces To Path is Denied when export xls file

asp.net core MVC login menggunakan custom database. Part-2

HttpPost, HttpGet dan Authorize attributes. Melanjutkan artikel part-1. Untuk meng-handle autentikasi dan input dari login form yang dikirim browser dengan metod POST, harus menggunakan HttpPost attribute pada method/action yang ada di SecurityController. Untuk itu tambahkan method baru yaitu Login dengan parameter type LoginViewModel. Saya akan menjelaskan gambar diatas, attribute yang dipakai adalah [HttpPost], [AllowAnonymous] dan … Lanjutkan membaca asp.net core MVC login menggunakan custom database. Part-2