You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code only works if the CTP_SCOPE env variable contains a single value such as manage_project:xyz
To make it work with values separated by spaces, CTP_SCOPE=manage_customers:xyz manage_orders:xyz we need to modify the code to split a long string into an array of strings.
The undefined is there to tell the system that, the middleware will use the scopes assigned to the API Client while it was being created via MC or API.
In the future, there could be a pre-defined scope but since this is a template, I think undefined is a good fit.
The text was updated successfully, but these errors were encountered:
In the auth.middleware.{js,ts} files in each of the connect applications, we have the following code
This code only works if the CTP_SCOPE env variable contains a single value such as manage_project:xyz
To make it work with values separated by spaces, CTP_SCOPE=manage_customers:xyz manage_orders:xyz we need to modify the code to split a long string into an array of strings.
Suggestion: modify the code as follows:
The undefined is there to tell the system that, the middleware will use the scopes assigned to the API Client while it was being created via MC or API.
In the future, there could be a pre-defined scope but since this is a template, I think undefined is a good fit.
The text was updated successfully, but these errors were encountered: