mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
734 B
29 lines
734 B
using System;
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
namespace Volo.Abp.IdentityModel;
|
|
|
|
[Serializable]
|
|
[IgnoreMultiTenancy]
|
|
public class IdentityModelDiscoveryDocumentCacheItem
|
|
{
|
|
public string TokenEndpoint { get; set; }
|
|
|
|
public string DeviceAuthorizationEndpoint { get; set; }
|
|
|
|
public IdentityModelDiscoveryDocumentCacheItem()
|
|
{
|
|
|
|
}
|
|
|
|
public IdentityModelDiscoveryDocumentCacheItem(string tokenEndpoint, string deviceAuthorizationEndpoint)
|
|
{
|
|
TokenEndpoint = tokenEndpoint;
|
|
DeviceAuthorizationEndpoint = deviceAuthorizationEndpoint;
|
|
}
|
|
|
|
public static string CalculateCacheKey(IdentityClientConfiguration configuration)
|
|
{
|
|
return configuration.Authority.ToLower().ToMd5();
|
|
}
|
|
}
|
|
|