jlevers / selling-partner-api

A PHP client library for Amazon's Selling Partner API
BSD 3-Clause "New" or "Revised" License
408 stars 198 forks source link

Rotating Client Credentials #814

Open sharat-rhinofish opened 1 week ago

sharat-rhinofish commented 1 week ago

Problem description:

Thank you for incorporating the Grantless Scope to Rotate Client credentials with SP API. The enum however has a minor typo error

The enum in src/Enums/GrantlessScope.php case ROTATE_TOKEN = 'sellingpartnerapi::client_credentials:rotation';

needs to be changed to

case ROTATE_TOKEN = 'sellingpartnerapi::client_credential:rotation';

Note the singular for client_credential. Refer https://developer-docs.amazon.com/sp-api/docs/application-management-api-v2023-11-30-use-case-guide#step-2-call-the-rotateapplicationclientsecret-operation