Skip to content

Instantly share code, notes, and snippets.

public class StsMiddleware
{
private readonly Func<IDictionary<string, object>, Task> _next;
private readonly IStsConfig _config;
public StsMiddleware(Func<IDictionary<string, object>, Task> next)
: this(next, new AppConfigStsConfig())
{}
public StsMiddleware(Func<IDictionary<string, object>, Task> next, IStsConfig config = null)
@leastprivilege
leastprivilege / id_clone.cmd
Last active August 3, 2018 13:53
Cloning identity* repos
md identity
cd identity
md server3
cd server3
git clone -b dev https://github.com/IdentityServer/IdentityServer3.git IdentityServer3
git clone -b dev https://github.com/IdentityServer/IdentityServer3.AccessTokenValidation.git AccessTokenValidation
git clone -b dev https://github.com/IdentityServer/IdentityServer3.Samples.git Samples
git clone -b dev https://github.com/IdentityServer/IdentityServer3.EntityFramework.git EntityFramework
@leastprivilege
leastprivilege / Whisk(e)y pre-release versioning scheme
Last active April 5, 2019 10:46
alphas, betas and RCs are boring - that's what I gonna use in the future for pre-release builds
I am fed up with alphas, betas and release candidates - especially since they don't mean anything anymore.
Here's my naming scheme for pre-releases. Slàinte!
aberfeldy
aberlour
ardbeg
ardmore
arran
aultmore
Link list for .NET community standup
ASP.NET Core API authorization docs
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity-api-authorization?view=aspnetcore-3.0
IdentityServer4 docs
https://identityserver4.readthedocs.io/en/latest/
IdentityServer4 organization
https://github.com/IdentityServer