Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCST-1431: Ignore expired password when using external sign in #7

Merged
merged 3 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="FluentValidation" Version="11.8.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="VirtoCommerce.Xapi.Core" Version="3.800.0" />
<PackageReference Include="VirtoCommerce.Xapi.Core" Version="3.802.0-alpha.32-vcst-1431" />
<PackageReference Include="VirtoCommerce.XCatalog.Core" Version="3.800.0" />
<PackageReference Include="VirtoCommerce.CartModule.Core" Version="3.810.0" />
<PackageReference Include="VirtoCommerce.PaymentModule.Core" Version="3.800.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected override Task AfterMediatorSend(IResolveFieldContext<object> context,

protected override async Task Authorize(IResolveFieldContext context, object resource, IAuthorizationRequirement requirement)
{
await _userManagerCore.CheckUserState(context.GetCurrentUserId(), allowAnonymous: true);
await _userManagerCore.CheckCurrentUserState(context, allowAnonymous: true);

await base.Authorize(context, resource, requirement);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected override Task AfterMediatorSend(IResolveFieldContext<object> context,

protected override async Task Authorize(IResolveFieldContext context, object resource, IAuthorizationRequirement requirement)
{
await _userManagerCore.CheckUserState(context.GetCurrentUserId(), allowAnonymous: true);
await _userManagerCore.CheckCurrentUserState(context, allowAnonymous: true);

await base.Authorize(context, resource, requirement);
}
Expand Down
2 changes: 1 addition & 1 deletion src/VirtoCommerce.XCart.Data/Schemas/PurchaseSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1663,7 +1663,7 @@ private static void InitializeWishlistUserContextScope(WishlistUserContext conte

private async Task AuthorizeAsync(IResolveFieldContext context, object resource)
{
await _userManagerCore.CheckUserState(context.GetCurrentUserId(), allowAnonymous: true);
await _userManagerCore.CheckCurrentUserState(context, allowAnonymous: true);
var authorizationResult = await _authorizationService.AuthorizeAsync(context.GetCurrentPrincipal(), resource, new CanAccessCartAuthorizationRequirement());

if (!authorizationResult.Succeeded)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="VirtoCommerce.Platform.Security" Version="3.841.0" />
<PackageReference Include="VirtoCommerce.Platform.Security" Version="3.848.0-alpha.12968-vcst-1431" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\VirtoCommerce.XCart.Core\VirtoCommerce.XCart.Core.csproj" />
Expand Down
6 changes: 3 additions & 3 deletions src/VirtoCommerce.XCart.Web/module.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<version>3.802.0</version>
<version-tag></version-tag>

<platformVersion>3.841.0</platformVersion>
<platformVersion>3.848.0-alpha.12968-vcst-1431</platformVersion>
<dependencies>
<dependency id="VirtoCommerce.Xapi" version="3.800.0" />
<dependency id="VirtoCommerce.Xapi" version="3.802.0-alpha.32-vcst-1431" />
<dependency id="VirtoCommerce.XCatalog" version="3.800.0" />
<dependency id="VirtoCommerce.Cart" version="3.810.0" />
<dependency id="VirtoCommerce.Inventory" version="3.800.0" />
Expand Down Expand Up @@ -39,7 +39,7 @@
<groups>
<group>commerce</group>
</groups>

<projectUrl>https://github.com/VirtoCommerce/vc-module-x-cart</projectUrl>
<iconUrl>Modules/$(VirtoCommerce.XCart)/Content/logo.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
Loading