9 references to DeviceBoundSessionConstants
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (9)
DeviceBoundSessionHandler.cs (5)
90var proofHeader = Request.Headers[DeviceBoundSessionConstants.Headers.Proof].ToString(); 177var sessionIdHeader = Request.Headers[DeviceBoundSessionConstants.Headers.SessionId].ToString(); 214var proofHeader = Request.Headers[DeviceBoundSessionConstants.Headers.Proof].ToString(); 220Response.Headers[DeviceBoundSessionConstants.Headers.Challenge] = $"\"{challenge}\";id=\"{sessionIdHeader}\""; 250Response.Headers[DeviceBoundSessionConstants.Headers.Challenge] = $"\"{retryChallenge}\";id=\"{sessionIdHeader}\"";
DeviceBoundSessionJwtValidator.cs (2)
116DeviceBoundSessionConstants.Es256 when string.Equals(jsonWebKey.Kty, "EC", StringComparison.Ordinal) && string.Equals(jsonWebKey.Crv, "P-256", StringComparison.Ordinal) => jsonWebKey, 117DeviceBoundSessionConstants.Rs256 when string.Equals(jsonWebKey.Kty, "RSA", StringComparison.Ordinal) => jsonWebKey,
DeviceBoundSessionRegistrationHeader.cs (2)
52var headerValue = $"{DeviceBoundSessionConstants.AdvertisedAlgorithms};path={HeaderUtilities.EscapeAsQuotedString(registrationPath)};challenge={HeaderUtilities.EscapeAsQuotedString(challenge)}"; 53httpContext.Response.Headers.Append(DeviceBoundSessionConstants.Headers.Registration, headerValue);