/
RemoteAuthenticationResult.cs
27 lines (24 loc) · 1.21 KB
/
RemoteAuthenticationResult.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
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Components.WebAssembly.Authentication
{
/// <summary>
/// Represents the result of an authentication operation.
/// </summary>
/// <typeparam name="TRemoteAuthenticationState">The type of the preserved state during the authentication operation.</typeparam>
public class RemoteAuthenticationResult<TRemoteAuthenticationState> where TRemoteAuthenticationState : RemoteAuthenticationState
{
/// <summary>
/// Gets or sets the status of the authentication operation. The status can be one of <see cref="RemoteAuthenticationStatus"/>.
/// </summary>
public RemoteAuthenticationStatus Status { get; set; }
/// <summary>
/// Gets or sets the error message of a failed authentication operation.
/// </summary>
public string ErrorMessage { get; set; }
/// <summary>
/// Gets or sets the preserved state of a successful authentication operation.
/// </summary>
public TRemoteAuthenticationState State { get; set; }
}
}