mirror of
https://github.com/bitwarden/server
synced 2026-01-07 02:53:38 +00:00
PM-10600: Added DeviceType claim
This commit is contained in:
@@ -162,6 +162,11 @@ public class CurrentContext : ICurrentContext
|
||||
|
||||
DeviceIdentifier = GetClaimValue(claimsDict, Claims.Device);
|
||||
|
||||
if (Enum.TryParse(GetClaimValue(claimsDict, Claims.DeviceType), out DeviceType deviceType))
|
||||
{
|
||||
DeviceType = deviceType;
|
||||
}
|
||||
|
||||
Organizations = GetOrganizations(claimsDict, orgApi);
|
||||
|
||||
Providers = GetProviders(claimsDict);
|
||||
|
||||
@@ -6,6 +6,7 @@ public static class Claims
|
||||
public const string SecurityStamp = "sstamp";
|
||||
public const string Premium = "premium";
|
||||
public const string Device = "device";
|
||||
public const string DeviceType = "devicetype";
|
||||
|
||||
public const string OrganizationOwner = "orgowner";
|
||||
public const string OrganizationAdmin = "orgadmin";
|
||||
|
||||
Reference in New Issue
Block a user