-
Notifications
You must be signed in to change notification settings - Fork 17
/
PlatformConfig.cs
37 lines (32 loc) · 1005 Bytes
/
PlatformConfig.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SignInMaui.MSALClient
{
/// <summary>
/// Platform specific configuration.
/// </summary>
public class PlatformConfig
{
/// <summary>
/// Instance to store data
/// </summary>
public static PlatformConfig Instance { get; } = new PlatformConfig();
/// <summary>
/// Platform specific Redirect URI
/// </summary>
public string RedirectUri { get; set; } = $"msal{PublicClientSingleton.Instance.MSALClientHelper.AzureAdConfig.ClientId}://auth";
/// <summary>
/// Platform specific parent window
/// </summary>
public object ParentWindow { get; set; }
// private constructor to ensure singleton
private PlatformConfig()
{
}
}
}