1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-25 05:21:03 -05:00

PM-20532 - Add TODOs

This commit is contained in:
Jared Snider 2025-05-15 22:55:21 -04:00
parent 1e6a721dca
commit 6b91396c89
No known key found for this signature in database
GPG Key ID: A149DDD612516286
3 changed files with 6 additions and 0 deletions

View File

@ -174,6 +174,9 @@ public class CurrentContext : ICurrentContext
ServiceAccountOrganizationId = new Guid(GetClaimValue(claimsDict, Claims.Organization));
}
// TODO: IdentityClientType.Send should maybe be wired up here. Have further discussion with Justin
// Create an ExtensionMethod on HttpContext to get the send id from the subject claim
DeviceIdentifier = GetClaimValue(claimsDict, Claims.Device);
if (Enum.TryParse(GetClaimValue(claimsDict, Claims.DeviceType), out DeviceType deviceType))

View File

@ -203,6 +203,8 @@ public class SendService : ISendService
{
return (false, false, false);
}
// TODO: this is what we will be using to validate password in SendAccessGrantValidator
if (!string.IsNullOrWhiteSpace(send.Password))
{
if (string.IsNullOrWhiteSpace(password))

View File

@ -352,6 +352,7 @@ public class IdentityServerTests : IClassFixture<IdentityApplicationFactory>
}
// TODO: use this as example to call send token endpoint
[Theory, BitAutoData]
public async Task TokenEndpoint_GrantTypeClientCredentials_AsOrganization_Success(Organization organization, Bit.Core.Entities.OrganizationApiKey organizationApiKey)
{