-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
GlobalValidation.cs
48 lines (42 loc) · 2.37 KB
/
GlobalValidation.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Applications.Containers.Models
{
/// <summary> The configuration settings that determines the validation flow of users using ContainerApp Service Authentication/Authorization. </summary>
public partial class GlobalValidation
{
/// <summary> Initializes a new instance of GlobalValidation. </summary>
public GlobalValidation()
{
ExcludedPaths = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of GlobalValidation. </summary>
/// <param name="unauthenticatedClientAction"> The action to take when an unauthenticated client attempts to access the app. </param>
/// <param name="redirectToProvider">
/// The default authentication provider to use when multiple providers are configured.
/// This setting is only needed if multiple providers are configured and the unauthenticated client
/// action is set to "RedirectToLoginPage".
/// </param>
/// <param name="excludedPaths"> The paths for which unauthenticated flow would not be redirected to the login page. </param>
internal GlobalValidation(UnauthenticatedClientActionV2? unauthenticatedClientAction, string redirectToProvider, IList<string> excludedPaths)
{
UnauthenticatedClientAction = unauthenticatedClientAction;
RedirectToProvider = redirectToProvider;
ExcludedPaths = excludedPaths;
}
/// <summary> The action to take when an unauthenticated client attempts to access the app. </summary>
public UnauthenticatedClientActionV2? UnauthenticatedClientAction { get; set; }
/// <summary>
/// The default authentication provider to use when multiple providers are configured.
/// This setting is only needed if multiple providers are configured and the unauthenticated client
/// action is set to "RedirectToLoginPage".
/// </summary>
public string RedirectToProvider { get; set; }
/// <summary> The paths for which unauthenticated flow would not be redirected to the login page. </summary>
public IList<string> ExcludedPaths { get; }
}
}