How to get Authorization: Basic Auth Header from AEM Author

Getting the Authorization (Basic access authentication) Basic Auth Header from AEM Author is simple. If you have curl installed on your machine, simply run the command below, and you should be able to get the Authorization header from a successful AEM login.

What we are doing here is logging into the AEM author with curl using -v (verbose) & -u (user:pass).

curl request:

1
curl -v -u admin:admin http://localhost:4502

curl response (line::8):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
* Rebuilt URL to: http://localhost:4502/
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 4502 (#0)
* Server auth using Basic with user 'admin'
> GET / HTTP/1.1
> Host: localhost:4502
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 302 Found
< Location: /index.html
< Transfer-Encoding: chunked
<
* Connection #0 to host localhost left intact

Authorization Basic:

1
Authorization: Basic YWRtaW46YWRtaW4=

Hello, I am an enthusiastic Adobe Community Advisor and a seasoned Lead AEM Developer. I am currently serving as an AEM Technical Lead at MNPDigital.ca, bringing over a decade of extensive web engineering experience and more than eight years of practical AEM experience to the table. My goal is to give back to the AEM Full Stack Development community by sharing my wealth of knowledge with others. You can connect with me on LinkedIn.

Leave a Reply

Your email address will not be published. Required fields are marked *


Back To Top