1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

PM-11123: Device Type mapping (#4768)

* PM-11123: Device Type mapping

* PM-11123: Moving ClientType out of NotificationCenter, naming clash with Identity ClientType

* PM-11123: Rename ClientType in ICurrentContext to match the type
This commit is contained in:
Maciej Zieniuk
2024-09-23 23:02:32 +02:00
committed by GitHub
parent e1bf8a9206
commit 9a5c6fe527
20 changed files with 89 additions and 52 deletions

View File

@ -1,4 +1,5 @@
using Bit.Core.Context;
using Bit.Core.Identity;
using Bit.Core.Settings;
using Bit.Core.Utilities;
using LaunchDarkly.Logging;
@ -153,9 +154,9 @@ public class LaunchDarklyFeatureService : IFeatureService
var builder = LaunchDarkly.Sdk.Context.MultiBuilder();
switch (_currentContext.ClientType)
switch (_currentContext.IdentityClientType)
{
case Identity.ClientType.User:
case IdentityClientType.User:
{
ContextBuilder ldUser;
if (_currentContext.UserId.HasValue)
@ -182,7 +183,7 @@ public class LaunchDarklyFeatureService : IFeatureService
}
break;
case Identity.ClientType.Organization:
case IdentityClientType.Organization:
{
if (_currentContext.OrganizationId.HasValue)
{
@ -196,7 +197,7 @@ public class LaunchDarklyFeatureService : IFeatureService
}
break;
case Identity.ClientType.ServiceAccount:
case IdentityClientType.ServiceAccount:
{
if (_currentContext.UserId.HasValue)
{