This is part of my JSON Web Token series. This time to show you how to create your own JWTs in dotnet core. Small note, creating your own token server isn’t something I would recommend! If you need your own token (identity/login/openid connect) server, have a look at Identity Server and the Identity server with Asp.net Identity quickstart.
Sometimes you just need a X509Certificate2 in your C# code. For authenticating to an external webservice for instance.
This will show you how to create such a certificate right from your C# code. By the way you’ll need the Bouncy castle or Bouncy castle core library
This page is created with the help of this page
I just found a really cool article about using deployment gates in VSTS, that use Azure functions to check Github issues.
Visual studio geeks – Check it out
If you’re creating a new Angular2 application, you definitely want to use the Angular2 CLI. It help you setup a new Angular application. It has a build-in development server and it will generate Components for you. This means less typing (isn’t that always better?).
I’ve found a few nice articles to get you started with Angular 2 and .NET core. Normally it would be somewhat of a hassle to get started, but this should provide you with some working samples. Fast track your Angular 2 and .NET Core Angular 2 and .NET Core – your first component Angular 2 and .NET Core – route directly to your components This is a series of posts by Jon Hilton and uses the...
Allowing users of your website to include a video into a message, can be done in two ways.
You instruct all the users to go to the video page, find the embed code, let them upload html to your website and displaying the raw html to all users.
You tell them to paste the link to the youtube page, and your website generates the embed code right from that link.
You’re building a new application, and you’re using Entity Framework Code First. Probably all your entities need an Id and CreatedAt/UpdatedAt property.
The sample below shows you how to define these properties in a base class, and (more importantly) how to set them correctly on every save, without setting them manually on every place where you’re changing things.
Yesterday WordPress 4.4 was released, with this version they improved this product even more. The most notable new features are, support for oEmbed and an integrated REST API. What is oEmbed and why is this a new amazing feature? oEmbed is a specification for embedding content from an other website right inside the consuming website. This enables (for instance) Twitter to display the excerpt of a...
Someone at WordPress decided that if you want to create a plugin for WordPress, you’ll have to host it at their SVN server. Personally I’m not a big fan of SVN, I’m more a GIT person. Lucky for me, it appears I’m not the only one. So for my latest WordPress plugin (REST API – Filter Fields) I used Github. Then I came to a few problems that had to be solved Small...