For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace TopologicalSort { | |
static class Program { | |
static void Main() { | |
// | |
// digraph G { | |
// "7" -> "11" |
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
Designing Event-Driven Systems book by Ben Stopford contains a lot of useful links to papers, books, documentation and definitions related to event driven design and Kafka. I just extracted them as reference for the future and added some groups to show them better.
You can read the book for free
Note: This guide applies to the project created by quasar-cli.
First install typescript
and ts-loader
packages in your project.
npm i -D typescript ts-loader
Then modified the quasar.conf.js
file in your project:
Authentication means determining who a particular user is. Authorization means applying rules about what they can do. Blazor contains features for handling both aspects of this.
It worth remembering how the overall goals differ between server-side Blazor and client-side Blazor:
#The display name of the application. | |
$appName = "BlazorTest1" | |
#Space-separated URIs to which Azure AD will redirect in response to an OAuth 2.0 request. The value does not need to be a physical endpoint, but must be a valid URI. | |
$replyUrl = "https://localhost:44324/authentication/login-callback" | |
#Get the appId of Microsoft Graph | |
$graphId = az ad sp list --query "[?appDisplayName=='Microsoft Graph'].appId | [0]" --all | |
#Get the id of the User.Read permission in the Graph | |
$userRead = az ad sp show --id $graphId --query "oauth2Permissions[?value=='User.Read'].id | [0]" |
The following are examples of various features.
using System; | |
using System.Threading.Tasks; | |
namespace System.Collections.Concurrent | |
{ | |
public static class ConcurrentDictionaryExtensions | |
{ | |
/// <summary> | |
/// Provides an alternative to <see cref="ConcurrentDictionary{TKey, TValue}.GetOrAdd(TKey, Func{TKey, TValue})"/> that disposes values that implement <see cref="IDisposable"/>. | |
/// </summary> |
namespace EsBankAccount.Account; | |
using Events = IReadOnlyCollection<IEvent>; | |
public record Transaction(decimal Amount, DateTime Date); | |
// events | |
public interface IEvent { } // used to mimic a discriminated union | |
public record Deposited(Transaction Transaction) : IEvent; | |
public record Withdrawn(Transaction Transaction) : IEvent; |