-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.4-develop' into 2.4-develop
- Loading branch information
Showing
2,095 changed files
with
77,737 additions
and
49,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,84 @@ | ||
|
||
<p align="center"> | ||
<a href="https://magento.com"> | ||
<img src="https://static.magento.com/sites/all/themes/magento/logo.svg" width="300px" alt="Magento Commerce" /> | ||
</a> | ||
<br /> | ||
<br /> | ||
<a href="https://www.codetriage.com/magento/magento2"> | ||
<img src="https://www.codetriage.com/magento/magento2/badges/users.svg" alt="Open Source Helpers" /> | ||
</a> | ||
<a href="https://gitter.im/magento/magento2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"> | ||
<img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter" /> | ||
</a> | ||
<a href="https://crowdin.com/project/magento-2"> | ||
<img src="https://d322cqt584bo4o.cloudfront.net/magento-2/localized.svg" alt="Crowdin" /> | ||
</a> | ||
<a href="https://www.codetriage.com/magento/magento2"><img src="https://www.codetriage.com/magento/magento2/badges/users.svg" alt="Open Source Helpers" /></a> | ||
<a href="https://gitter.im/magento/magento2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter" /></a> <a href="https://crowdin.com/project/magento-2"><img src="https://d322cqt584bo4o.cloudfront.net/magento-2/localized.svg" alt="Crowdin" /></a><br/> | ||
<a href="https://magento.com/products/magento-open-source"> | ||
<img alt="Adobe logo" height="50px" src="https://www.adobe.com/content/dam/cc/icons/Adobe_Corporate_Horizontal_Red_HEX.svg"/> | ||
</a> | ||
</p> | ||
|
||
# Welcome | ||
|
||
Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting-edge, feature-rich eCommerce solution that gets results. | ||
|
||
## Magento System Requirements | ||
<h1 align="center">Magento Open Source</h1> | ||
|
||
* [Magento System Requirements](https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html) | ||
Welcome to the Magento Open Source project! [Magento Open Source](https://magento.com/products/magento-open-source) software delivers basic eCommerce capabilities to build a unique online store from the ground up. | ||
|
||
## Install Magento | ||
However, for those who need a full-featured eCommerce solution, we recommend [Adobe Commerce](https://magento.com/products/magento-commerce), which includes our optimized cloud architecture and hosting as well as AI-powered merchandising and analytics. | ||
|
||
* [Installation Guide](https://devdocs.magento.com/guides/v2.4/install-gde/bk-install-guide.html) | ||
## Get started | ||
|
||
## Learn About GraphQL in Magento 2 | ||
- [Quick start install](https://devdocs.magento.com/guides/v2.4/install-gde/composer.html) | ||
- [System requirements](https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html) | ||
- [Prerequisites](https://devdocs.magento.com/guides/v2.4/install-gde/prereq/prereq-overview.html) | ||
- [More installation options](https://devdocs.magento.com/guides/v2.4/install-gde/bk-install-guide.html) | ||
|
||
* [GraphQL Developer Guide](https://devdocs.magento.com/guides/v2.4/graphql/index.html) | ||
## Get help | ||
|
||
## Contributing to the Magento 2 Code Base | ||
- [Help center](https://support.magento.com/hc/en-us) | ||
|
||
Contributions can take the form of new components or features, changes to existing features, tests, documentation (such as developer guides, user guides, examples, or specifications), bug fixes, optimizations, or just good suggestions. | ||
## Contribute | ||
|
||
To learn about how to contribute, click [here][1]. | ||
Our [Community](https://opensource.magento.com/) is large and diverse, and our project is enormous. As a contributor, you have countless opportunities to impact product development and delivery by introducing new features or improving existing ones, enhancing test coverage, updating documentation for [developers](https://devdocs.magento.com/) and [end-users](https://docs.magento.com/user-guide/), catching and fixing code bugs, suggesting points for optimization, and sharing your great ideas. | ||
|
||
To learn about issues, click [here][2]. | ||
- [Contribute to the code](https://devdocs.magento.com/contributor-guide/contributing.html) | ||
- [Report an issue](https://devdocs.magento.com/contributor-guide/contributing.html#report) | ||
- [Improve the developer documentation](https://github.com/magento/devdocs) | ||
- [Improve the end-user documentation](https://github.com/magento/merchdocs) | ||
- [Shape the future of Magento Open Source](https://developer.adobe.com/open/magento) | ||
|
||
To open an issue, click [here][3]. | ||
### Maintainers | ||
|
||
To suggest documentation improvements, click [here][4]. | ||
We encourage experts from the Community to help us with GitHub routines such as accepting, merging, or rejecting pull requests and reviewing issues. Adobe has granted the Community Maintainers permission to accept, merge, and reject pull requests, as well as review issues. Thanks to invaluable input from the Community Maintainers team, we can significantly improve contribution quality and accelerate the time to deliver your updates to production. | ||
|
||
[1]: https://devdocs.magento.com/contributor-guide/contributing.html | ||
[2]: https://devdocs.magento.com/contributor-guide/contributing.html#report | ||
[3]: https://github.com/magento/magento2/issues | ||
[4]: https://devdocs.magento.com | ||
|
||
### Community Maintainers | ||
|
||
The members of this team have been recognized for their outstanding commitment to maintaining and improving Magento. Magento has granted them permission to accept, merge, and reject pull requests, as well as review issues, and thanks to these Community Maintainers for their valuable contributions. | ||
- [Learn more about the Maintainer role](https://devdocs.magento.com/contributor-guide/maintainers.html) | ||
- [Maintainer's Handbook](https://devdocs.magento.com/contributor-guide/maintainer-handbook.html) | ||
|
||
[![](https://raw.githubusercontent.com/wiki/magento/magento2/images/maintainers.png)](https://magento.com/magento-contributors#maintainers) | ||
|
||
### Top Contributors | ||
### Leaders | ||
|
||
Magento is thankful for any contribution that can improve our codebase, documentation or increase test coverage. We always recognize our most active members, as their contributions are the foundation of the Magento Open Source platform. | ||
Adobe highly appreciates contributions that help us to improve the code, clarify the documentation, and increase test coverage. Check out our Community leaders, superstars, and superheroes on the [leaderboard](https://magento.biterg.io/app/kibana#/dashboard/41dc0c60-fa06-11eb-bbaa-dd6ca6f8fda8?_g=()). | ||
|
||
[![](https://raw.githubusercontent.com/wiki/magento/magento2/images/contributors.png)](https://magento.com/magento-contributors) | ||
|
||
### Labels Applied by the Magento Team | ||
### Labeling | ||
|
||
We use labels in the GitHub issues and pull requests to help the participants retrieve additional information such as progress, component assignments, or release lines. | ||
|
||
We apply labels to public Pull Requests and Issues to help other participants retrieve additional information about current progress, component assignments, Magento release lines, and much more. | ||
Please review the [Code Contributions guide](https://devdocs.magento.com/contributor-guide/contributing.html#labels) for detailed information on labels used in Magento 2 repositories. | ||
- [Labels applied by the Community Engineering team](https://devdocs.magento.com/contributor-guide/contributing.html#labels) | ||
|
||
## Reporting Security Issues | ||
## Security | ||
|
||
To report security vulnerabilities or learn more about reporting security issues in Magento software or web sites visit the [Magento Bug Bounty Program](https://hackerone.com/magento) on hackerone. Please create a hackerone account [there](https://hackerone.com/magento) to submit and follow-up on your issue. | ||
[Security](https://devdocs.magento.com/guides/v2.4/architecture/security_intro.html) is one of the highest priorities at Adobe. To learn more about reporting security concerns, visit the [Adobe Bug Bounty Program](https://hackerone.com/adobe). | ||
|
||
Stay up-to-date on the latest security news and patches for Magento by signing up for [Security Alert Notifications](https://magento.com/security/sign-up). | ||
Stay up-to-date on the latest security news and patches by signing up for [Security Alert Notifications](https://magento.com/security/sign-up). | ||
|
||
## License | ||
## Licensing | ||
|
||
Each Magento source file included in this distribution is licensed under OSL 3.0 or the Magento Enterprise Edition (MEE) license. | ||
Each Magento source file included in this distribution is licensed under OSL 3.0 or the terms and conditions of the applicable ordering document between Licensee/Customer and Adobe (or Magento). | ||
|
||
[Open Software License (OSL 3.0)](https://opensource.org/licenses/osl-3.0.php) – Please see [LICENSE.txt](LICENSE.txt) for the full text of the OSL 3.0 license. | ||
|
||
Subject to Licensee's/Customer's payment of fees and compliance with the terms and conditions of the applicable ordering document between Licensee/Customer and Adobe (or Magento), the terms and conditions of the applicable ordering between Licensee/Customer and Adobe (or Magento) supersede the OSL 3.0 license for each source file. | ||
|
||
[Open Software License (OSL 3.0)](https://opensource.org/licenses/osl-3.0.php). | ||
Please see [LICENSE.txt](https://github.com/magento/magento2/blob/2.4-develop/LICENSE.txt) for the full text of the OSL 3.0 license or contact [email protected] for a copy. | ||
## Communications | ||
|
||
Subject to Licensee's payment of fees and compliance with the terms and conditions of the MEE License, the MEE License supersedes the OSL 3.0 license for each source file. | ||
Please see LICENSE_EE.txt for the full text of the MEE License or visit <https://magento.com/legal/terms/enterprise>. | ||
We are dedicated to our Community and encourage your contributions and welcome feedback through [events](https://www.adobe.io/open/magento/calendar), our [DevBlog](https://community.magento.com/t5/Magento-DevBlog/bg-p/devblog), Twitter and YouTube channels, and [other Community resources](https://devdocs.magento.com/community/resources.html). | ||
|
||
## Community Engineering Slack | ||
To connect with people from the Community and Adobe engineering, [join us in Slack](https://magentocommeng.slack.com). We have a channel for every project. To join a particular channel, send us a request at [[email protected]](mailto:[email protected]), or [sign up](https://opensource.magento.com/slack). | ||
|
||
To connect with Magento and the Community, join us on the [Magento Community Engineering Slack](https://magentocommeng.slack.com). If you are interested in joining Slack, or a specific channel, send us a request at [engcom@adobe.com](mailto:[email protected]) or [self signup](https://opensource.magento.com/slack). | ||
- [Popular Slack channels](https://www.adobe.io/open/magento/slack) | ||
|
||
We have channels for each project. These channels are recommended for new members: | ||
If you are a new Community member, check out the following channels: | ||
|
||
* [general](https://magentocommeng.slack.com/archives/C4YS78WE6): Open chat for introductions and Magento 2 questions | ||
* [github](https://magentocommeng.slack.com/archives/C7KB93M32): Support for GitHub issues, pull requests, and processes | ||
* [public-backlog](https://magentocommeng.slack.com/archives/CCV3J3RV5): Discussions of the Magento 2 backlog | ||
- [general](https://magentocommeng.slack.com/archives/C4YS78WE6) is an open chat for introductions and Magento 2 questions | ||
- [github](https://magentocommeng.slack.com/archives/C7KB93M32) is a support channel for GitHub issues, pull requests, and processes | ||
- [public-backlog](https://magentocommeng.slack.com/archives/CCV3J3RV5) for discussions of the backlog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
app/code/Magento/Analytics/Plugin/BearerTokenValidatorPlugin.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Magento\Analytics\Plugin; | ||
|
||
use Magento\Framework\App\Config\ScopeConfigInterface; | ||
use Magento\Integration\Model\Integration; | ||
use Magento\Integration\Model\Validator\BearerTokenValidator; | ||
|
||
/** | ||
* Overrides authorization config to always allow analytics token to be used as bearer | ||
*/ | ||
class BearerTokenValidatorPlugin | ||
{ | ||
/** | ||
* @var ScopeConfigInterface | ||
*/ | ||
private ScopeConfigInterface $config; | ||
|
||
/** | ||
* @param ScopeConfigInterface $config | ||
*/ | ||
public function __construct(ScopeConfigInterface $config) | ||
{ | ||
$this->config = $config; | ||
} | ||
|
||
/*** | ||
* Always allow access token for analytics to be used as bearer | ||
* | ||
* @param BearerTokenValidator $subject | ||
* @param bool $result | ||
* @param Integration $integration | ||
* @return bool | ||
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | ||
*/ | ||
public function afterIsIntegrationAllowedAsBearerToken( | ||
BearerTokenValidator $subject, | ||
bool $result, | ||
Integration $integration | ||
): bool { | ||
return $result || $integration->getName() === $this->config->getValue('analytics/integration_name'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.