diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/Controllers/AuthenticationController.cs b/sandbox/OpenIddict.Sandbox.AspNet.Client/Controllers/AuthenticationController.cs index 2bddbb43..cbde3e7b 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/Controllers/AuthenticationController.cs +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/Controllers/AuthenticationController.cs @@ -114,7 +114,7 @@ namespace OpenIddict.Sandbox.AspNet.Client.Controllers .Select(claim => claim switch { // Map the standard "sub" and custom "id" claims to ClaimTypes.NameIdentifier, which is - // the default claim type used by ASP.NET and is required by the antiforgery components. + // the default claim type used by .NET and is required by the antiforgery components. { Type: Claims.Subject } or { Type: "id", Issuer: "https://github.com/" or "https://twitter.com/" } => new Claim(ClaimTypes.NameIdentifier, claim.Value, claim.ValueType, claim.Issuer), @@ -137,7 +137,7 @@ namespace OpenIddict.Sandbox.AspNet.Client.Controllers _ => false })); - // The antiforgery components require both the nameidentifier and identityprovider claims + // The antiforgery components require both the ClaimTypes.NameIdentifier and identityprovider claims // so the latter is manually added using the issuer identity resolved from the remote server. claims.Add(new Claim("http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider", result.Identity.GetClaim(Claims.AuthorizationServer))); diff --git a/sandbox/OpenIddict.Sandbox.AspNet.Client/Views/Home/Index.cshtml b/sandbox/OpenIddict.Sandbox.AspNet.Client/Views/Home/Index.cshtml index be7a8a17..6193c6bb 100644 --- a/sandbox/OpenIddict.Sandbox.AspNet.Client/Views/Home/Index.cshtml +++ b/sandbox/OpenIddict.Sandbox.AspNet.Client/Views/Home/Index.cshtml @@ -1,5 +1,4 @@ @using System.Security.Claims -@using OpenIddict.Abstractions @model string