Skip to content

Commit

Permalink
[MWPW-142899] Add additional IMS scopes for Universal Navigation inte…
Browse files Browse the repository at this point in the history
…gration (#1899)

* [MWPW-138933] Add additional IMS scopes for Universal Navigation integration

* Make sure that imslib is initialised used the correct scope regardless of config
  • Loading branch information
narcis-radu authored and 3ch023 committed Feb 22, 2024
1 parent 5998c8d commit c2df896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const config = {
fallbackRouting: 'on',
links: 'on',
imsClientId: 'milo',
imsScope: 'AdobeID,openid,gnav',
imsScope: 'AdobeID,openid,gnav,pps.read,firefly_api',
codeRoot: '/libs',
locales,
prodDomains,
Expand Down
2 changes: 1 addition & 1 deletion libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ export async function loadIms() {
const timeout = setTimeout(() => reject(new Error('IMS timeout')), 5000);
window.adobeid = {
client_id: imsClientId,
scope: imsScope || 'AdobeID,openid,gnav',
scope: imsScope || 'AdobeID,openid,gnav,pps.read,firefly_api',
locale: locale?.ietf?.replace('-', '_') || 'en_US',
autoValidateToken: true,
environment: env.ims,
Expand Down

0 comments on commit c2df896

Please sign in to comment.