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

CC-32215 IGs and Security doc. #2480

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
df0e3fe
CC-32215: IGs and Security doc
ilyakubanov Jan 25, 2024
966b318
fix
supproduction Jan 26, 2024
698dd40
CC-32215: Added the fixes after the technical review.
abitskil Jan 26, 2024
d09f4e1
Merge remote-tracking branch 'origin/master' into feature/cc-32215/de…
abitskil Jan 26, 2024
9f0bdc1
CC-32215: Resolved the merge conflicts.
abitskil Jan 26, 2024
3c08d23
Merge branch 'master' into feature/cc-32215/dev-agent-assist-in-merch…
andriitserkovnyi Jan 31, 2024
e3bde48
Update install-the-acl-feature.md
andriitserkovnyi Jan 31, 2024
a9977ea
Update install-the-acl-feature.md
andriitserkovnyi Jan 31, 2024
f9139c5
review
andriitserkovnyi Jan 31, 2024
c36b45f
Update install-the-marketplace-merchant-portal-core-feature.md
andriitserkovnyi Jan 31, 2024
6a272cf
Update install-the-marketplace-merchant-portal-core-feature.md
andriitserkovnyi Jan 31, 2024
d83d131
Update install-the-marketplace-merchant-portal-core-feature.md
andriitserkovnyi Jan 31, 2024
765c5eb
Merge branch 'master' into feature/cc-32215/dev-agent-assist-in-merch…
andriitserkovnyi Feb 1, 2024
7ac77c2
Update install-the-marketplace-merchant-portal-core-feature.md
andriitserkovnyi Feb 1, 2024
6532e79
Update install-the-marketplace-merchant-portal-core-feature.md
andriitserkovnyi Feb 1, 2024
488a3d9
Merge branch 'master' into feature/cc-32215/dev-agent-assist-in-merch…
andriitserkovnyi Feb 1, 2024
8885472
Update install-the-marketplace-merchant-portal-core-feature.md
andriitserkovnyi Feb 1, 2024
9ee467c
Merge branch 'master' into feature/cc-32215/dev-agent-assist-in-merch…
andriitserkovnyi Feb 1, 2024
b6d5fb1
CC-32215: Added fixes according to comments.
abitskil Feb 1, 2024
53ed623
review
andriitserkovnyi Feb 1, 2024
b3fb60e
Merge branch 'feature/cc-32215/dev-agent-assist-in-merchant-portal' o…
andriitserkovnyi Feb 1, 2024
30b3312
CC-32215: Added fixes according to comments.
abitskil Feb 1, 2024
d798d68
Merge branch 'feature/cc-32215/dev-agent-assist-in-merchant-portal' o…
andriitserkovnyi Feb 1, 2024
8eee3b7
sidebar
andriitserkovnyi Feb 1, 2024
531f72e
Update pbc_all_sidebar.yml
andriitserkovnyi Feb 2, 2024
48c2f61
Merge branch 'master' into feature/cc-32215/dev-agent-assist-in-merch…
andriitserkovnyi Feb 2, 2024
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
433 changes: 433 additions & 0 deletions _includes/pbc/all/install-features/202403.0/install-the-acl-feature.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ Enable the following behaviors by registering the plugins:
| MerchantUserViewMerchantUpdateFormViewExpanderPlugin | Expands merchant `FormView` with the data for the merchant user tab. | | Spryker\Zed\MerchantUserGui\Communication\Plugin\MerchantGui |
| MerchantProductOfferStorageExpanderPlugin | Returns `ProductOfferStorage` transfer object expanded with `Merchant`. | | Spryker\Client\MerchantStorage\Plugin\ProductOfferStorage |
| MerchantProductOfferStorageFilterPlugin | Filters `ProductOfferCollection` transfer object by active and approved merchant. | | Spryker\Zed\MerchantStorage\Communication\Plugin\ProductOfferStorage |
| MerchantUserTwigPlugin | Adds 'merchantName' Twig global variable. | | Spryker\Zed\MerchantUser\Communication\Plugin\Twig |

<details><summary markdown='span'>src/Pyz/Zed/Merchant/MerchantDependencyProvider.php</summary>

Expand Down Expand Up @@ -364,6 +365,34 @@ Make sure that, when you retrieve a product offer from storage, you can see the

{% endinfo_block %}

```php
<?php

namespace Pyz\Zed\Twig;

use Spryker\Zed\MerchantUser\Communication\Plugin\Twig\MerchantUserTwigPlugin;
use Spryker\Zed\Twig\TwigDependencyProvider as SprykerTwigDependencyProvider;

class TwigDependencyProvider extends SprykerTwigDependencyProvider
{
/**
* @return array<\Spryker\Shared\TwigExtension\Dependency\Plugin\TwigPluginInterface>
*/
protected function getTwigPlugins(): array
{
return [
new MerchantUserTwigPlugin(),
];
}
}
```

{% info_block warningBox "Verification" %}

Make sure that `merchantName` global Twig variable is available.

{% endinfo_block %}

#### Optional: Enable the Backend API authentication

1. [Integrate Glue authentication](/docs/scos/dev/migration-concepts/migrate-to-decoupled-glue-infrastructure/decoupled-glue-infrastructure-integrate-the-authentication.html).
Expand Down Expand Up @@ -411,6 +440,8 @@ class OauthUserConnectorDependencyProvider extends SprykerOauthUserConnectorDepe
}
```



{% info_block warningBox "Verification" %}

1. Make sure that you can authenticate as a merchant user:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,21 @@ Set up behavior as follows:

#### Integrate the following plugins

| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
|------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|---------------|----------------------------------------------------------------------------------|
| ZedMerchantUserSecurityPlugin | Sets security firewalls (rules, handlers) for Marketplace users. | | Spryker\Zed\SecurityMerchantPortalGui\Communication\Plugin\Security |
| BooleanToStringTwigPlugin | Adds a new Twig function for converting Boolean to String. | | Spryker\Zed\ZedUi\Communication\Plugin\Twig |
| ZedUiNavigationTwigPlugin | Adds a new Twig function for rendering Navigation using web components. | | Spryker\Zed\ZedUi\Communication\Plugin |
| GuiTableApplicationPlugin | Enables GuiTable infrastructure for Zed. | | Spryker\Zed\GuiTable\Communication\Plugin\Application |
| GuiTableConfigurationTwigPlugin | Adds a new Twig function for rendering GuiTableConfiguration for the GuiTable web component. | | Spryker\Zed\GuiTable\Communication\Plugin\Twig |
| SecurityTokenUpdateMerchantUserPostChangePlugin | Rewrites Symfony security token. | | Spryker\Zed\SecurityMerchantPortalGui\Communication\Plugin\UserMerchantPortalGui |
| MerchantPortalConfigurationAclEntityMetadataConfigExpanderPlugin | Expands provided the `AclEntityMetadataConfig` transfer object with event behavior composite data. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\AclEntity |
| MerchantAclEntitiesMerchantPostCreatePlugin | Creates ACL group, ACL role, ACL rules, ACL entity rules, and ACL entity segment for a provided merchant. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\Merchant |
| MerchantUserAclEntitiesMerchantUserPostCreatePlugin | Creates ACL group, ACL role, ACL rules, ACL entity rules, and ACL entity segment for a provided merchant user. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\MerchantUser |
| AclMerchantPortalMerchantUserRoleFilterPreConditionPlugin | Checks if the Symfony security authentication roles should be filtered out. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\MerchantUser |
| MerchantUserUserRoleFilterPlugin | Filters `ROLE_BACK_OFFICE_USER` to prevent a merchant user from loging in to the Back Office. | | Spryker\Zed\MerchantUser\Communication\Plugin\SecurityGui |
| ProductViewerForOfferCreationAclInstallerPlugin | Provide `ProductViewerForOfferCreation` roles with rules and groups to create on installation. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\MerchantUser |
| AclGroupMerchantUserLoginRestrictionPlugin | Checks if the merchant user login is restricted. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\SecurityMerchantPortalGui |
| PLUGIN | SPECIFICATION | PREREQUISITES | NAMESPACE |
|------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|---------------|----------------------------------------------------------------------------------|
| ZedMerchantUserSecurityPlugin | Sets security firewalls (rules, handlers) for Marketplace users. | | Spryker\Zed\SecurityMerchantPortalGui\Communication\Plugin\Security |
| BooleanToStringTwigPlugin | Adds a new Twig function for converting Boolean to String. | | Spryker\Zed\ZedUi\Communication\Plugin\Twig |
| ZedUiNavigationTwigPlugin | Adds a new Twig function for rendering Navigation using web components. | | Spryker\Zed\ZedUi\Communication\Plugin |
| GuiTableApplicationPlugin | Enables GuiTable infrastructure for Zed. | | Spryker\Zed\GuiTable\Communication\Plugin\Application |
| GuiTableConfigurationTwigPlugin | Adds a new Twig function for rendering GuiTableConfiguration for the GuiTable web component. | | Spryker\Zed\GuiTable\Communication\Plugin\Twig |
| MerchantUserSecurityTokenUpdateMerchantUserPostChangePlugin | Rewrites Symfony security token for merchant users with `MerchantUser` and without `IS_IMPERSONATOR` roles granted. | | Spryker\Zed\SecurityMerchantPortalGui\Communication\Plugin\UserMerchantPortalGui |
| MerchantPortalConfigurationAclEntityMetadataConfigExpanderPlugin | Expands provided the `AclEntityMetadataConfig` transfer object with event behavior composite data. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\AclEntity |
| MerchantAclEntitiesMerchantPostCreatePlugin | Creates ACL group, ACL role, ACL rules, ACL entity rules, and ACL entity segment for a provided merchant. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\Merchant |
| MerchantUserAclEntitiesMerchantUserPostCreatePlugin | Creates ACL group, ACL role, ACL rules, ACL entity rules, and ACL entity segment for a provided merchant user. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\MerchantUser |
| AclMerchantPortalMerchantUserRoleFilterPreConditionPlugin | Checks if the Symfony security authentication roles should be filtered out. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\MerchantUser |
| MerchantUserUserRoleFilterPlugin | Filters `ROLE_BACK_OFFICE_USER` to prevent a merchant user from loging in to the Back Office. | | Spryker\Zed\MerchantUser\Communication\Plugin\SecurityGui |
| ProductViewerForOfferCreationAclInstallerPlugin | Provide `ProductViewerForOfferCreation` roles with rules and groups to create on installation. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\MerchantUser |
| AclGroupMerchantUserLoginRestrictionPlugin | Checks if the merchant user login is restricted. | | Spryker\Zed\AclMerchantPortal\Communication\Plugin\SecurityMerchantPortalGui |

**src/Pyz/Zed/Twig/TwigDependencyProvider.php**

Expand Down Expand Up @@ -293,7 +293,7 @@ Ensure that merchant users or users, whose Acl Group does't have Back Office all

namespace Pyz\Zed\UserMerchantPortalGui;

use Spryker\Zed\SecurityMerchantPortalGui\Communication\Plugin\UserMerchantPortalGui\SecurityTokenUpdateMerchantUserPostChangePlugin;
use Spryker\Zed\SecurityMerchantPortalGui\Communication\Plugin\UserMerchantPortalGui\MerchantUserSecurityTokenUpdateMerchantUserPostChangePlugin;
use Spryker\Zed\UserMerchantPortalGui\UserMerchantPortalGuiDependencyProvider as SprykerUserMerchantPortalGuiDependencyProvider;

class UserMerchantPortalGuiDependencyProvider extends SprykerUserMerchantPortalGuiDependencyProvider
Expand All @@ -304,7 +304,7 @@ class UserMerchantPortalGuiDependencyProvider extends SprykerUserMerchantPortalG
public function getMerchantUserPostChangePlugins(): array
{
return [
new SecurityTokenUpdateMerchantUserPostChangePlugin(),
new MerchantUserSecurityTokenUpdateMerchantUserPostChangePlugin(),
];
}
}
Expand Down
Loading
Loading