Skip to content

Commit

Permalink
feat: Allow AEM CLI to obtain site token
Browse files Browse the repository at this point in the history
  • Loading branch information
andreituicu committed Jan 10, 2025
1 parent 2cfde06 commit 84092d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/up.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default class UpCommand extends AbstractServerCommand {
.withOrg(org)
.withSiteLoginUrl(
// TODO switch to production URL
`https://admin-ci.hlx.page/login/${org}/${site}/main?client_id=aem-cli&redirect_uri=${encodeURIComponent(`http://localhost:${this._httpPort}/.aem/cli/login/ack`)}`,
`https://admin.hlx.page/login/${org}/${site}/main?client_id=aem-cli&redirect_uri=${encodeURIComponent(`http://localhost:${this._httpPort}/.aem/cli/login/ack`)}`,
);
}

Expand Down
4 changes: 2 additions & 2 deletions test/up-cmd.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('Integration test for up command with helix pages', function suite() {
resp.headers
.get('location')
.startsWith(
'https://admin-ci.hlx.page/login/adobe/dummy-foo/main?client_id=aem-cli&redirect_uri=http%3A%2F%2Flocalhost%3A0%2F.aem%2Fcli%2Flogin%2Fack&state=',
'https://admin.hlx.page/login/adobe/dummy-foo/main?client_id=aem-cli&redirect_uri=http%3A%2F%2Flocalhost%3A0%2F.aem%2Fcli%2Flogin%2Fack&state=',
),
);
} catch (e) {
Expand Down Expand Up @@ -256,7 +256,7 @@ describe('Integration test for up command with helix pages', function suite() {
resp.headers
.get('location')
.startsWith(
'https://admin-ci.hlx.page/login/adobe/dummy/main?client_id=aem-cli&redirect_uri=http%3A%2F%2Flocalhost%3A0%2F.aem%2Fcli%2Flogin%2Fack&state=',
'https://admin.hlx.page/login/adobe/dummy/main?client_id=aem-cli&redirect_uri=http%3A%2F%2Flocalhost%3A0%2F.aem%2Fcli%2Flogin%2Fack&state=',
),
);
} catch (e) {
Expand Down

0 comments on commit 84092d6

Please sign in to comment.