1 write to Items
Microsoft.AspNetCore.Authentication.Abstractions (1)
AuthenticationProperties.cs (1)
44Items = items ?? new Dictionary<string, string?>(StringComparer.Ordinal);
43 references to Items
Microsoft.AspNetCore.Authentication (7)
PropertiesSerializer.cs (2)
51writer.Write(properties.Items.Count); 53foreach (var item in properties.Items)
RemoteAuthenticationHandler.cs (5)
154ticketContext.Properties!.Items[AuthSchemeKey] = Scheme.Name; 205&& ticket.Properties.Items.TryGetValue(AuthSchemeKey, out var authenticatedScheme) 236properties.Items[CorrelationProperty] = correlationId; 252if (!properties.Items.TryGetValue(CorrelationProperty, out var correlationId)) 258properties.Items.Remove(CorrelationProperty);
Microsoft.AspNetCore.Authentication.Abstractions (24)
AuthenticationProperties.cs (16)
54new Dictionary<string, string?>(Items, StringComparer.Ordinal), 120/// Get a string value from the <see cref="Items"/> collection. 126return Items.TryGetValue(key, out var value) ? value : null; 130/// Set or remove a string value from the <see cref="Items"/> collection. 138Items[key] = value; 142Items.Remove(key); 165/// Get a nullable <see cref="bool"/> from the <see cref="Items"/> collection. 171if (Items.TryGetValue(key, out var value) && bool.TryParse(value, out var boolValue)) 179/// Set or remove a <see cref="bool"/> value in the <see cref="Items"/> collection. 187Items[key] = value.GetValueOrDefault().ToString(); 191Items.Remove(key); 196/// Get a nullable <see cref="DateTimeOffset"/> value from the <see cref="Items"/> collection. 202if (Items.TryGetValue(key, out var value) 211/// Sets or removes a <see cref="DateTimeOffset" /> value in the <see cref="Items"/> collection. 219Items[key] = value.GetValueOrDefault().ToString(UtcDateTimeFormat, CultureInfo.InvariantCulture); 223Items.Remove(key);
TokenExtensions.cs (8)
30properties.Items.Remove(TokenKeyPrefix + t.Name); 32properties.Items.Remove(TokenNamesKey); 44properties.Items[TokenKeyPrefix + token.Name] = token.Value; 49properties.Items[TokenNamesKey] = string.Join(';', tokenNames); 66return properties.Items.TryGetValue(tokenKey, out var value) ? value : null; 82if (!properties.Items.ContainsKey(tokenKey)) 86properties.Items[tokenKey] = tokenValue; 100if (properties.Items.TryGetValue(TokenNamesKey, out var value) && !string.IsNullOrEmpty(value))
Microsoft.AspNetCore.Authentication.Cookies (2)
CookieAuthenticationHandler.cs (2)
142foreach (var item in ticket.Properties.Items) 144newProperties.Items[item.Key] = item.Value;
Microsoft.AspNetCore.Authentication.OAuth (3)
OAuthHandler.cs (3)
210if (context.Properties.Items.TryGetValue(OAuthConstants.CodeVerifierKey, out var codeVerifier)) 213context.Properties.Items.Remove(OAuthConstants.CodeVerifierKey); 320properties.Items.Add(OAuthConstants.CodeVerifierKey, codeVerifier);
Microsoft.AspNetCore.Identity (7)
SignInManager.cs (7)
702props.Items[PasskeyOperationKey] = operation; 703props.Items[PasskeyStateKey] = state; 723if (!properties.Items.TryGetValue(PasskeyOperationKey, out var operation) || 724!properties.Items.TryGetValue(PasskeyStateKey, out var state)) 1093var items = auth?.Properties?.Items; 1163properties.Items[LoginProviderKey] = provider; 1166properties.Items[XsrfKey] = userId;