/
MsalAuthenticationOptions.cs
54 lines (46 loc) · 1.94 KB
/
MsalAuthenticationOptions.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.Authentication.WebAssembly.Msal;
/// <summary>
/// Authentication options for the underlying msal.js library handling the authentication.
/// </summary>
public class MsalAuthenticationOptions
{
/// <summary>
/// Gets or sets the client id for the application.
/// </summary>
public string? ClientId { get; set; }
/// <summary>
/// Gets or sets the authority for the Azure Active Directory or Azure Active Directory B2C instance.
/// </summary>
public string? Authority { get; set; }
/// <summary>
/// Gets or sets a value that indicates whether or not to validate the authority.
/// </summary>
/// <remarks>
/// This value needs to be set to false when using Azure Active Directory B2C.
/// </remarks>
public bool ValidateAuthority { get; set; } = true;
/// <summary>
/// Gets or sets the redirect uri for the application.
/// </summary>
/// <remarks>
/// It can be an absolute or base relative <see cref="Uri"/> and defaults to <c>authentication/login-callback.</c>
/// </remarks>
public string? RedirectUri { get; set; }
/// <summary>
/// Gets or sets the post logout redirect uri for the application.
/// </summary>
/// <remarks>
/// It can be an absolute or base relative <see cref="Uri"/> and defaults to <c>authentication/logout-callback.</c>
/// </remarks>
public string? PostLogoutRedirectUri { get; set; }
/// <summary>
/// Gets or sets whether or not to navigate to the login request url after a successful login.
/// </summary>
public bool NavigateToLoginRequestUrl { get; set; }
/// <summary>
/// Gets or sets the set of known authority host names for the application.
/// </summary>
public IList<string> KnownAuthorities { get; set; } = new List<string>();
}