mirror of
https://github.com/bitwarden/server.git
synced 2026-02-10 10:55:10 +08:00
17 lines
894 B
C#
17 lines
894 B
C#
|
|
using Bit.Core.Tools.Models.Data;
|
|||
|
|
using Duende.IdentityServer.Validation;
|
|||
|
|
|
|||
|
|
namespace Bit.Identity.IdentityServer.RequestValidators.SendAccess;
|
|||
|
|
|
|||
|
|
public interface ISendPasswordRequestValidator
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Validates the send password hash against the client hashed password.
|
|||
|
|
/// If this method fails then it will automatically set the context.Result to an invalid grant result.
|
|||
|
|
/// </summary>
|
|||
|
|
/// <param name="context">request context</param>
|
|||
|
|
/// <param name="resourcePassword">resource password authentication method containing the hash of the Send being retrieved</param>
|
|||
|
|
/// <returns>returns the result of the validation; A failed result will be an error a successful will contain the claims and a success</returns>
|
|||
|
|
GrantValidationResult ValidateSendPassword(ExtensionGrantValidationContext context, ResourcePassword resourcePassword, Guid sendId);
|
|||
|
|
}
|