How to collect and visualize performance counters for ASP.NET on Azure App Services

I’ve recently had the unfortunate task to diagnose and monitor memory and GC related events for our asp.net api running on .net 4.7.2 in Azure App Services (Azure Web app). Information and examples on how to do this is hard to come by and perhaps not relevant due to the difference in azure appservices environment, so I thought I’d summarize my experience in Jan 2020. Note: I’m not sure if this post applies to .net core. …

Personal Access Tokens with IdentityServer4

In this post, I will describe how you can leverage existing IdentityServer features to generate and support PATs, as well as configuring your API Resources to accept them. Why Personal Access Tokens (PAT)? A PAT is a alternative to your username/password for authentication when working with Automation scripts or curl’ing your API where oAuth might be inconvenient or hard to implement. Reference Tokens Identityserver has built-in support to generate both JWT (Self-contained) and Reference Tokens (not self-contained). In contrast to JWTs, a reference token can easily be revoked which is a useful feature for a PAT. IdentityServer also expose introspection...…

jQuery in three lines of code

One code snippet I often return to when building something small and I need to select an element or add eventhandler is this: const $ = (selector) => document.querySelector(selector) const $$ = (selector) => document.querySelectorAll(selector) const on = (elem, type, listener) => elem.addEventListener(type,listener) …

The passwordless web is coming

I have been working on a very exciting side project the last couple of months that will allow you - as a user of a website or app - to signup and login without passwords. This technology is called FIDO2 (Fast IDentity Online) and was designed by the FIDO Alliance together with large tech companies such as Microsoft, Google, Paypal etc. Why it’s cool and you will like it You never have to use passwords again. Seriously. Instead you will have a key - you can think of it like a house key; but digital and on steroids. This digital...…

FIDO2 - Things I learned by building a FIDO2 server

Over the last couple of months I’ve been building a FIDO2 open source server. I should probably do a larger write-up on the library and FIDO itself some day, but I wanted to write down some things I had to discover and learn. Disclosure: I’m not an expert on FIDO. I implemented a library by reading the specs and asking a ton of questions. Before May 2018 I had never heard of Fido. I might get things wrong. 1. FIDO2 is a separate but similiar standard from FIDO U2F and FIDO UAF. FIDO2 is a new specification, complimenting (replacing) the...…

Reverse engineering the Apple iPhone X landing page

Hello fellow kids & developers! I decided to reverse engineer the Apple iPhone X website to learn how their slick “X” landing page is made. By combining a couple of effects it makes for a very powerful end result. Note: It’s similiar to how I did the Avicii True Stories effect. First things first, this is what we’re dissecting today! Let’s break the gif down: It starts with an X with a smooth moving plasma. Upon scrolling the X transforms into an iPhone and the plasma remains and becomes the screen. Everything slides in and out in motion. Tight. Okey,...…