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

Use string as scope #286

Closed
wants to merge 1 commit into from
Closed

Use string as scope #286

wants to merge 1 commit into from

Conversation

keulinho
Copy link
Contributor

Using a list of scopes was not spec compliant: thephpleague/oauth2-server#1469

With an update of our oauth lib this is no longer supported, leading to fails in the ATS: shopware/shopware#5986

Using a list of scopes was not spec compliant: thephpleague/oauth2-server#1469

With an update of our oauth lib this is no longer supported, leading to fails in the ATS: shopware/shopware#5986
@@ -89,7 +89,7 @@ export class AdminApiContext {
grant_type: 'client_credentials',
client_id: options.client_id,
client_secret: options.client_secret,
scope: ['write'],
scope: 'write',
Copy link
Contributor

@pweyck pweyck Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to support older shopware versions (at least the LTS), so we should try both variations, if we can't detect the version (I believe that is only possible after auth)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, it should have always worked to provide plain string therefore there should be no need to switch the behaviour

@keulinho keulinho closed this Jan 24, 2025
@keulinho keulinho deleted the keulinho-patch-1 branch January 24, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants