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