Skip to content

Commit 32b33fc

Browse files
committed
AC-1619: Integration access tokens do not work as Bearer tokens
1 parent eaaabb7 commit 32b33fc

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
9+
<default>
10+
<oauth>
11+
<consumer>
12+
<enable_integration_as_bearer>1</enable_integration_as_bearer>
13+
</consumer>
14+
</oauth>
15+
</default>
16+
</config>

dev/tests/api-functional/testsuite/Magento/Integration/Model/IntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function testGetServiceCall()
6969

7070
/**
7171
* Test Integration access token cannot be used as Bearer token by default
72+
* @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 0
7273
*/
7374
public function testIntegrationAsBearerTokenDefault()
7475
{
@@ -90,7 +91,6 @@ public function testIntegrationAsBearerTokenDefault()
9091
/**
9192
* Test Integration access token can be used as Bearer token when explicitly enabled
9293
*
93-
* @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
9494
* @doesNotPerformAssertions
9595
*/
9696
public function testIntegrationAsBearerTokenEnabled()

dev/tests/api-functional/testsuite/Magento/Webapi/WsdlGenerationFromDataObjectTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ protected function setUp(): void
3535
parent::setUp();
3636
}
3737

38+
/**
39+
* @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 0
40+
*/
3841
public function testDisabledIntegrationAsBearer()
3942
{
4043
$wsdlUrl = $this->_getBaseWsdlUrl() . 'testModule5AllSoapAndRestV1,testModule5AllSoapAndRestV2';
@@ -65,9 +68,6 @@ public function testAuthenticationWithOAuth()
6568
$this->checkAll($wsdlContent);
6669
}
6770

68-
/**
69-
* @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
70-
*/
7171
public function testMultiServiceWsdl()
7272
{
7373
$this->_soapUrl = "{$this->_baseUrl}/soap/{$this->_storeCode}"
@@ -79,9 +79,6 @@ public function testMultiServiceWsdl()
7979
$this->checkAll($wsdlContent);
8080
}
8181

82-
/**
83-
* @magentoConfigFixture default_store oauth/consumer/enable_integration_as_bearer 1
84-
*/
8582
public function testSingleServiceWsdl()
8683
{
8784
$this->_soapUrl = "{$this->_baseUrl}/soap/{$this->_storeCode}?services=testModule5AllSoapAndRestV2";

0 commit comments

Comments
 (0)