Skip to content

Commit a07ba3b

Browse files
committed
Shares bug fix auth scope being inconsistant
1 parent 8e4ee99 commit a07ba3b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

API/Controller/Shares/Links/_ApiController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace OpenShock.API.Controller.Shares.Links;
1212
[ApiController]
1313
[Tags("Public Shocker Shares")]
1414
[Route("/{version:apiVersion}/shares/links")]
15-
[Authorize(AuthenticationSchemes = OpenShockAuthSchemas.UserSessionApiTokenCombo)]
15+
[Authorize(AuthenticationSchemes = OpenShockAuthSchemas.UserSessionCookie)]
1616
public sealed partial class ShareLinksController : AuthenticatedSessionControllerBase
1717
{
1818
private readonly OpenShockContext _db;

API/Controller/Shares/_ApiController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace OpenShock.API.Controller.Shares;
1414
[Tags("Shocker Shares")]
1515
[ApiVersion("1"), ApiVersion("2")]
1616
[Route("/{version:apiVersion}/shares")]
17-
[Authorize(AuthenticationSchemes = OpenShockAuthSchemas.UserSessionApiTokenCombo)]
17+
[Authorize(AuthenticationSchemes = OpenShockAuthSchemas.UserSessionCookie)]
1818
public sealed partial class SharesController : AuthenticatedSessionControllerBase
1919
{
2020
private readonly OpenShockContext _db;

0 commit comments

Comments
 (0)