Background Story

I had an ASP.NET Core 5.0 Web Application based on the Angular SPA template and I needed to use a Cosmos DB database in the backend, but at the same time I wanted to use the Identity and Identity Server feature provided by ASP.NET Core.

And since this is not supported natively on Cosmos DB I decided to implement my own storage provider using the official EF Core Azure Cosmos DB Provider.

Fortunately the ASP.NET Core Identity ecosystem has a good architecture design and allows for customization/extension quite easily.

The NuGet Package

This task has been challenging and fun at the same time…


In 2020 talking about “plain JavaScript” may sound weird. We have TypeScript and we have a lot of libraries and excellent frameworks such as Angular, React and so on.

But truth is that from time to time, as a professional software engineer, you’ll find yourself working on a legacy web application that doesn’t use any framework on the frontend side. The only friendly-looking thing you’ll find (sometimes) will be jQuery. That’s it.

However you’ll still have to implement a good solution, hopefully structuring frontend in components, decoupling frontend from backend, writing JS modules to function as sort of view-models for…

Water is such a complex material, with specific features like reflection and refraction and building a water shader in 3d programs is not a trivial task.

Today I’ll show you a simple and quick — but still effective — water shader setup in Blender 2.80.

For the demonstration I’ve setup a very basic river bed made of pebbles, with some mud and grass on the sides. I used a fluid simulation to obtain a mesh that will represent our water just to have some movement on the surface, rather than just creating a flat plane that would look boring. …

When you develop an Angular application that connects to a backend, there are cases in which you may want to serve the frontend files directly as part of the backend application, instead of serving them as an independent application.

An example? To simplify the authentication and authorization process.

In this scenario, you could delegate to the ASP.NET code the management of the authentication session (cookies, etc.) avoiding the need to manage auth tokens — with the consequent expiration/renewal problems.

In this article, I’ll guide you through the simple process of creating an Angular application and serve it directly as part…

Photo by Joanna Kosinska on Unsplash

You may be thinking that in 2019 this title is non-sense, and I’d be tempted to agree with you.

Not even I thought that in 2019 I would have found myself needing a synchronous http client implementation.

We have the HttpClient, right?

Unfortunately, not exactly.

What if you are in a context where you cannot use the asynchronous HttpClient?

Intro — A Unity 3D Story

Quick example: a few days ago I (re)started to use Unity 3D, because I had a nice idea for a simple 3D game and I wanted to implement it.

The architecture of the game is made of two parts:

  • The server-side…

In this article I’ll walk you through the configuration of an ASP.NET Core 2.2 application that supports OAuth authentication with individual user accounts on SQL Server (through EntityFramework Core).

If you’re in a hurry…

… you can go directly to the GitHub repository containing the final project, ready to use.

What you’ll need

Here’s a short list of what you’ll need to follow through this article:

  • Visual Studio: I’m currently using the 2017 Community version, but also Visual Studio 2019 should be fine
  • SQL Server: the Express edition will be fine
  • Postman: we’ll use this tool to test our final configuration. …

Just a quick tip for those of you disappointed by the lack of a UI-based option to go database-first on Entity Framework Core.

How to do?

The feature is still there (more or less…), you have to open the Package Manager Console on Visual Studio and use the Scaffold-DbContext command to generate the data context.

Be careful

Unlike the old (?) …

Piero De Tomi

I write mainly about IT related things.

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