update to use ClaimsPrincipal instead of ControllerBase
This commit is contained in:
@@ -63,7 +63,7 @@ public class EnvelopeController : BaseController
|
||||
{
|
||||
envelopeKey = _urlEncoder.Encode(envelopeKey);
|
||||
|
||||
var authSignature = this.GetAuthReceiverSignature();
|
||||
var authSignature = User.GetAuthReceiverSignature();
|
||||
|
||||
if (authSignature != envelopeKey.GetReceiverSignature())
|
||||
return Unauthorized();
|
||||
@@ -98,9 +98,9 @@ public class EnvelopeController : BaseController
|
||||
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
|
||||
public async Task<IActionResult> Reject([FromBody] string? reason = null)
|
||||
{
|
||||
var signature = this.GetAuthReceiverSignature();
|
||||
var uuid = this.GetAuthEnvelopeUuid();
|
||||
var mail = this.GetAuthReceiverMail();
|
||||
var signature = User.GetAuthReceiverSignature();
|
||||
var uuid = User.GetAuthEnvelopeUuid();
|
||||
var mail = User.GetAuthReceiverMail();
|
||||
if (uuid is null || signature is null || mail is null)
|
||||
{
|
||||
_logger.LogEnvelopeError(uuid: uuid, signature: signature,
|
||||
|
||||
Reference in New Issue
Block a user