/
RemoteAuthenticationContext.cs
29 lines (24 loc) · 1.13 KB
/
RemoteAuthenticationContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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 static Microsoft.AspNetCore.Internal.LinkerFlags;
namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication;
/// <summary>
/// Represents the context during authentication operations.
/// </summary>
/// <typeparam name="TRemoteAuthenticationState"></typeparam>
public class RemoteAuthenticationContext<[DynamicallyAccessedMembers(JsonSerialized)] TRemoteAuthenticationState> where TRemoteAuthenticationState : RemoteAuthenticationState
{
/// <summary>
/// Gets or sets the url for the current authentication operation.
/// </summary>
public string? Url { get; set; }
/// <summary>
/// Gets or sets the state instance for the current authentication operation.
/// </summary>
public TRemoteAuthenticationState? State { get; set; }
/// <summary>
/// Gets or sets the interaction request for the current authentication operation.
/// </summary>
public InteractiveRequestOptions? InteractiveRequest { get; set; }
}