Skip to content

Commit

Permalink
Merge pull request #150 from vtex-apps/hotfix/b2b-checkout-skip-auth-…
Browse files Browse the repository at this point in the history
…token-validation

fix: skip auth token validation for b2b-checkout-settings
  • Loading branch information
Rudge authored Feb 29, 2024
2 parents 1f049e8 + 9a236d6 commit 46db4cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Skip auth token validation when the x-vtex-caller is b2b-checkout-settings

## [0.48.4] - 2024-02-28

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions node/resolvers/directives/checkUserAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export class CheckUserAccess extends SchemaDirectiveVisitor {
if (
context.headers?.['x-vtex-caller']?.indexOf(
'vtex.storefront-permissions'
) !== -1 ||
context.headers?.['x-vtex-caller']?.indexOf(
'vtex.b2b-checkout-settings'
) !== -1
) {
return resolve(root, args, context, info)
Expand Down

0 comments on commit 46db4cf

Please sign in to comment.