about to test remote access
This commit is contained in:
parent
47323b2d85
commit
d21337d4a6
8 changed files with 86 additions and 81 deletions
|
|
@ -9,8 +9,24 @@ namespace Yavsc;
|
|||
|
||||
public static class Config
|
||||
{
|
||||
/// <summary>
|
||||
/// Authority URL for IdentityServer, used for authentication and authorization.
|
||||
/// </summary>
|
||||
public static string Authority { get; set; }
|
||||
|
||||
public static string AuthorityDomain
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Uri.TryCreate(Authority, UriKind.Absolute, out var uri))
|
||||
{
|
||||
return uri.GetLeftPart(UriPartial.Authority);
|
||||
}
|
||||
throw new InvalidOperationException("Invalid Authority URL");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static IConfigurationRoot? GoogleWebClientConfiguration { get; set; }
|
||||
public static GoogleServiceAccount? GServiceAccount { get; set; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue