mirror of
https://github.com/bitwarden/server.git
synced 2025-04-25 06:42:22 -05:00
24 lines
838 B
C#
24 lines
838 B
C#
using Bit.Core.Enums;
|
|
using Bit.Core.Settings;
|
|
using IdentityServer4.Models;
|
|
|
|
namespace Bit.Core.IdentityServer;
|
|
|
|
public class StaticClientStore
|
|
{
|
|
public StaticClientStore(GlobalSettings globalSettings)
|
|
{
|
|
ApiClients = new List<Client>
|
|
{
|
|
new ApiClient(globalSettings, BitwardenClient.Mobile, 90, 1),
|
|
new ApiClient(globalSettings, BitwardenClient.Web, 30, 1),
|
|
new ApiClient(globalSettings, BitwardenClient.Browser, 30, 1),
|
|
new ApiClient(globalSettings, BitwardenClient.Desktop, 30, 1),
|
|
new ApiClient(globalSettings, BitwardenClient.Cli, 30, 1),
|
|
new ApiClient(globalSettings, BitwardenClient.DirectoryConnector, 30, 24)
|
|
}.ToDictionary(c => c.ClientId);
|
|
}
|
|
|
|
public IDictionary<string, Client> ApiClients { get; private set; }
|
|
}
|