I'm clearly behind the times. I'm trying to convert this example from C# to VB:
Not being a real fan of lambdas, there some syntax there that I'm not familiar with. I believe I got the first part converted, but what is happening with that .AddCookie is not something I'm familiar with.Code:{
services.AddMvc();
JwtSecurityTokenHandler.DefaultInboundClaimTypeMap.Clear();
services.AddAuthentication(options =>
{
options.DefaultScheme = "Cookies";
options.DefaultChallengeScheme = "oidc";
})
.AddCookie("Cookies")
.AddOpenIdConnect("oidc", options =>
{
options.SignInScheme = "Cookies";
options.Authority = "http://localhost:5000";
options.RequireHttpsMetadata = false;
options.ClientId = "mvc";
options.SaveTokens = true;
});
}

