We recently added multi-tenancy support to the social login system in our ASP.NET Zero project.ASP.NET Zero supports Facebook, Google, Microsoft, Twitter, OpenId Connect and WsFederation login options. Normally social logins do not support multi-tenancy by default. In this article, I will show you how to set these social login options per tenant.

First of all, What is Multi-Tenancy?

“Software Multitenancy refers to a software architecture in which a single instance of a software runs on a server and serves multiple tenants. A tenant is a group of users who share common access with specific privileges to the software instance. With a multitenant architecture, a software application…


In this article, I will show you the basics of the Webhook mechanism that uses a publish-subscribe pattern in the ASP.NET CORE 3.1 project.

What is Webhook

Webhooks are user-defined HTTP callbacks. They are usually triggered by some events, such as pushing code to a repository or a comment being posted to a blog. When that event occurs, the source site makes an HTTP request to the URL configured for the Webhook. Users can configure them to cause events on one site to invoke behavior on another.

(https://en.wikipedia.org/wiki/Webhook)

We have implemented a Webhook mechanism that uses a publish-subscribe pattern to our ASP.NET Boilerplate


In this article, I will show you how to integrate the refresh token mechanism to the ASP.NET Zero project.

We use Angular HttpInterceptor to handle requests. And I will implement how to use refresh tokens using Interceptor.

As a summary, the HttpInterceptor works as middleware between each request and server. As a default, all your requests enter the HttpInterceptor’s intercept method. And then you can handle the request and release it to the next handler. Our interceptor will work as shown in the below diagram.


In this article, I will integrate ASP.NET health check to the ASP.NET Boilerplate project.

What is ASP.NET Health Check

ASP.NET Core offers Health Check Middleware and libraries for reporting the health of app infrastructure components. It allows you to check the health of the application.

There are dozens of libraries you can use with health checks. And you can also create your own health checks.

Let’s start.

  • Download your ASP.NET Boilerplate application.

Go to https://aspnetboilerplate.com/Templates and download your .NET Core application and make the first setup (update DB, etc.)

(In this article I will use Multi-Page Web Application)

See: https://aspnetboilerplate.com/Pages/Documents


Today I’ll show you how to bypass AdBlock in your own web site.

Photo by Niels Steeman on Unsplash

Note: This solution can only bypass your own ads that you serve with your server.

How AdBlock Work?

In a simple sense, AdBlock works in 2 ways.

1- Blocking by url

AdBlock can prevent the page/css/js/… loading, if the url of request is in the banned list.

This banned list contains url and url expression as seen below.
.com/?ad=
.net/ad2/

2- Blocking by html element

If your html elements contain a class name, id or etc. in the banned list, AdBlock blocks your html elements.

see example list: https://easylist.to/easylist/easylist.txt

How…

Demirmusa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store