Skip to content

FRW-11887 Merchant user authentication for the Backend API - #3899

Draft
demkos wants to merge 8 commits into
masterfrom
feature/frw-11887/merchant-login-backend-api
Draft

FRW-11887 Merchant user authentication for the Backend API#3899
demkos wants to merge 8 commits into
masterfrom
feature/frw-11887/merchant-login-backend-api

Conversation

@demkos

@demkos demkos commented Sep 9, 2026

Copy link
Copy Markdown
Member

PR Description

Documents the merchant user authentication for the Backend API shipped with spryker/suite#1062:

  • New page Glue API: Authenticate as a merchant user (POST /token, JSON:API body, the scopes and roles the token grants, the active-user requirement, possible errors), linked from the Back Office authentication page and the sidebar.
  • API Platform security: the back-office-userROLE_BACK_OFFICE_USER and merchant-userROLE_MERCHANT_USER scope mapping (hyphens become underscores, user maps to no role), a new Resolving the user behind a token section with the UserIdentityCriteriaExpanderPluginInterface extension point, and a warning that Bearer authentication only runs for resources that declare security at the resource level.
  • Resource schemas: the scope provider table now lists MerchantUserTypeOauthScopeProviderPlugin and the hyphen rule of the mapping.
  • Integrate API Platform security: new optional step to enable Persistent ACL for the Backend API (AclEntityApplicationPlugin + NoCurrentUserAclEntityDisablerPlugin).

Ready for review once spryker/suite#1062 is merged; opened as a draft until then.

Scope note: everything documented here requires the API Platform integration of the Backend API; the legacy Glue infrastructure is not covered, and every page says so in an info block.

Tickets

FRW-11887 — https://spryker.atlassian.net/browse/FRW-11887 (code: spryker/suite#1062)

Checklist

  • I agree with the Code Contribution License Agreement in CONTRIBUTING.md
  • I validated and improved the content with Custom GPT
  • I checked my pages at the deployment preview website.
  • I invited a person to review and merge this PR.

* Add the "Authenticate as a merchant user" page for POST /token and the roles the token grants.
* Document the back-office-user and merchant-user scope to role mapping and the resource-level security requirement.
* Document resolving the user behind a token and the UserIdentityCriteriaExpanderPluginInterface extension point.
* Add the optional Persistent ACL wiring for the Backend API to the API Platform security integration guide.
@netlify

netlify Bot commented Sep 9, 2026

Copy link
Copy Markdown

Deploy Preview for spryker-docs ready!

Name Link
🔨 Latest commit 59f3a4a
🔍 Latest deploy log https://app.netlify.com/projects/spryker-docs/deploys/6aa2932b352c9c0007b5117d
😎 Deploy Preview https://deploy-preview-3899--spryker-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant