auth improvements related to multi-tenancy
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Oqtane.Shared {
|
||||
|
||||
@ -72,5 +71,7 @@ namespace Oqtane.Shared {
|
||||
public static readonly string SatelliteAssemblyExtension = ".resources.dll";
|
||||
|
||||
public static readonly string DefaultCulture = "en";
|
||||
|
||||
public static readonly string AuthenticationScheme = "Identity.Application";
|
||||
}
|
||||
}
|
||||
|
@ -108,6 +108,11 @@ namespace Oqtane.Shared
|
||||
return $"{aliasUrl}{Constants.ContentUrl}{fileId}{method}";
|
||||
}
|
||||
|
||||
public static string TenantUrl(Alias alias, string url)
|
||||
{
|
||||
url = (!url.StartsWith("/")) ? "/" + url : url;
|
||||
return (alias != null && !string.IsNullOrEmpty(alias.Path)) ? "/" + alias.Path + url : url;
|
||||
}
|
||||
public static string GetTypeName(string fullyqualifiedtypename)
|
||||
{
|
||||
if (fullyqualifiedtypename.Contains(","))
|
||||
|
Reference in New Issue
Block a user