mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-14 02:34:25 +01:00
Add ability to mark auth handle as successful
Without this, there is no way to let the handle finish with a successful state. I somehow missed to add this in #3977.
This commit is contained in:
committed by
Andrew Camilleri
parent
1e378dd986
commit
bbce4451aa
@@ -8,7 +8,7 @@ public class AuthorizationFilterHandle
|
||||
public AuthorizationHandlerContext Context { get; }
|
||||
public PolicyRequirement Requirement { get; }
|
||||
public HttpContext HttpContext { get; }
|
||||
public bool Success { get; }
|
||||
public bool Success { get; private set; }
|
||||
|
||||
public AuthorizationFilterHandle(
|
||||
AuthorizationHandlerContext context,
|
||||
@@ -19,4 +19,9 @@ public class AuthorizationFilterHandle
|
||||
Requirement = requirement;
|
||||
HttpContext = httpContext;
|
||||
}
|
||||
|
||||
public void MarkSuccessful()
|
||||
{
|
||||
Success = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user