| File: SessionScopeRule.cs | Web Access |
| Project: src\aspnetcore\src\Security\Authentication\DeviceBoundSessions\src\Microsoft.AspNetCore.Authentication.DeviceBoundSessions.csproj (Microsoft.AspNetCore.Authentication.DeviceBoundSessions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; namespace Microsoft.AspNetCore.Authentication.DeviceBoundSessions; /// <summary> /// Represents a scope specification rule in the DBSC session instructions. Corresponds to the /// "JSON Session Scope Rule Format" defined in W3C Device Bound Session Credentials §9.8. /// </summary> [Experimental("ASP0031", UrlFormat = "https://aka.ms/aspnet/analyzer/{0}")] public sealed class SessionScopeRule { /// <summary> /// Gets or sets the type ("include" or "exclude"). /// </summary> [JsonPropertyName("type")] public string Type { get; set; } = default!; /// <summary> /// Gets or sets the domain pattern. /// </summary> [JsonPropertyName("domain")] public string Domain { get; set; } = default!; /// <summary> /// Gets or sets the path. /// </summary> [JsonPropertyName("path")] public string Path { get; set; } = default!; }