adobe / helix-cli

Command-line tools for developing with AEM
Apache License 2.0
49 stars 58 forks source link

[Importer] Support importing pages with authentication #2365

Closed jckautzmann closed 2 months ago

jckautzmann commented 3 months ago

In xwalk projects (Danaher, Comwrap, IBM …) we need to run the importer on AEM author pages which require authentication. This is currently not possible because the HelixImportServer removes the header information in [1].

One solution we discussed with @kptdobe, @Buuhuu, @bpauli, @jckautzmann is to run the import CLI with a flag (e.g. allowHeaders) pointing to a json file (e.g. headers.json) in which the headers are defined and make the import proxy server pass the headers to the target server. For current projects, either the Cookie or the Authorisation header will be used.

[1] https://github.com/adobe/helix-cli/blob/main/src/server/HelixImportServer.js#L99

tripodsan commented 2 months ago

:tada: This issue has been resolved in version 16.5.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: