Skip to content

Instantly share code, notes, and snippets.

View kriebb's full-sized avatar

Kristof Riebbels kriebb

View GitHub Profile
@kriebb
kriebb / InExpression.MD
Created October 10, 2022 13:13 — forked from bartdesmet/InExpression.MD
Roslyn workshop (Techorama) - Add a new `in` expression to C#

Add a new in expression to C#

Goals

In this workshop, we'll add a new in expression to C#, with example use cases shown below:

x in 1..10     // x >= 1 && x < 10
'a' in "bar"   // "bar".IndexOf('a') >= 0   -or-   "bar".Contains('a')
x in xs // xs.Contains(x)
@kriebb
kriebb / web.4.5.1.config
Created June 9, 2020 09:01 — forked from sjwaight/web.4.5.1.config
Sample web.config that demonstrates how the previously created web.2.0.config file (https://gist.github.com/sjwaight/7508374) can be updated to support claims-based authentication.
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="system.identityModel" type="System.IdentityModel.Configuration.SystemIdentityModelSection, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<section name="system.identityModel.services" type="System.IdentityModel.Services.Configuration.SystemIdentityModelServicesSection, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</configSections>
<appSettings>
<add key="ida:FederationMetadataLocation" value="https://localhost/idsrv/FederationMetadata/2007-06/FederationMetadata.xml" />
<add key="ida:Realm" value="https://localhost/authdemoapp/secured/" />
<add key="ida:AudienceUri" value="https://localhost/authdemoapp/secured/" />