Login page not formatted properly in AEM

Issue

When going to the AEM Author login page, the page shows the default browser font and colors for the login field, instead of showing the properly formatted field.

Environment

AEM 6.3, AEM 6.4

Cause

CSS and JS for the login page is not loaded properly, because /etc.clientlibs is not allowed for anonymous users.

Resolution

  1. 1. Go to http://aemhost:port/system/console/configMgr and log in as admin.

  2. 2. Fine the OSGi configuration for Apache Sling Authentication Service.

  3. 3. Ensure that Authentication Requirements has the rule:

    -/etc.clientlibs

  4. 4. Add the rule and save if it's missing.