Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to get Authorization: Basic Auth Header from AEM Author | AEM Community Blog Seeding

kautuk_sahni
Community Manager
Community Manager

BlogImage.jpg

How to get Authorization: Basic Auth Header from AEM Author by Sourced Code

Abstract

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:
curl -v -u admin:admin http://localhost:4502
curl response (line::8):

* 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:


Authorization: Basic YWRtaW46YWRtaW4=

Read Full Blog

How to get Authorization: Basic Auth Header from AEM Author

Q&A

Please use this thread to ask the related questions.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies