How to migrate

The simple steps you need to take to make sure your integration is up-to-date with the new Authentication API

To migrate to the new authentication process you just need a couple of tweaks to your current codebase:

  1. Change the authentication endpoint from https://yourdomain.commercelayer.io/oauth to https://auth.commercelayer.io/oauth

  2. Stop using the market and/or stock location number (e.g.: market:1234) when including a scope and start using the new syntax with the ID or the code (e.g. market:id:xYZkjABcde or market:code:europe).

  3. If you're still leveraging a custom org-specific secret key to sign a manually built JWT for SSO, switch to the JWT bearer flow with a proper assertion.

Last updated