Skip to content

Instantly share code, notes, and snippets.

@woloski
woloski / multitenant.md
Last active February 11, 2024 23:14
Multi Tenant Apps in Auth0

Multitenancy refers to a principle in software architecture where a single instance of the software runs on a server, serving multiple client-organizations (tenants)

Let's start by enumerating some multi tenant applications and understand how they handle it.

Slack

Authentication:

@mat-mcloughlin
mat-mcloughlin / ಠ_ಠAttribute.cs
Created December 11, 2013 16:33
This code is bad and you should feel bad
[AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class ಠ_ಠAttribute : Attribute
{
public ILog Log { get; set; }
public ಠ_ಠAttribute()
{
Log.Info("This code is bad and you should feel bad");
}
}
@hyrmn
hyrmn / Example.cs
Last active December 24, 2015 14:19
A modest proposal for routing in Nancy
// Now, there are instances where you don't actually care about parameters passed in. A GET route to an about page for example.
// The normal route might look like:
Get["/"] = parameters => View["about"];
// However, since parameters are not used, the convention is to use an underscore:
Get["/"] = _ => View["about"];
// That works, but, frankly, it's a little hard to read and gets lost in the shuffle.
[AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class ಠ_ಠAttribute : Attribute
{
public ILog Log { get; set; }
public ಠ_ಠAttribute()
{
Log.Info("This code is bad and you should feel bad");
}
}