Skip to content

Commit

Permalink
React to API changes in aspnet/Caching and aspnet/Identity
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchalet committed Mar 9, 2016
1 parent ed1a221 commit 576d42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/Mvc.Server/Controllers/AccountController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public class AccountController : Controller {
// If the user does not have an account, then ask the user to create an account.
ViewData["ReturnUrl"] = returnUrl;
ViewData["LoginProvider"] = info.LoginProvider;
var email = info.ExternalPrincipal.FindFirstValue(ClaimTypes.Email);
var email = info.Principal.FindFirstValue(ClaimTypes.Email);
return View("ExternalLoginConfirmation", new ExternalLoginConfirmationViewModel { Email = email });
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/OpenIddict.Core/OpenIddictExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static class OpenIddictExtensions {
}

builder.Services.AddAuthentication();
builder.Services.AddCaching();
builder.Services.AddDistributedMemoryCache();

builder.Services.TryAddSingleton(
typeof(IOpenIdConnectServerProvider),
Expand Down

0 comments on commit 576d42b

Please sign in to comment.