Getting authorization issue | Community
Skip to main content
September 24, 2022
Solved

Getting authorization issue

  • September 24, 2022
  • 3 replies
  • 3960 views

I am getting this error message “org.apache.http.client.HttpResponseException: status code: 401, reason phrase: Unauthorized” while trying to hit the api of this url “https://author-p69802-e616155.adobeaemcloud.com”. I have implemented SSL certification also but still getting the same error message.

 

Could you please help to resolve this issue.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Ok, I am using username/password.


What password are you using? You cannot do a POST of your AEM credentials (which you enter either at IMS or at the SSO solution of your company) to AEM, that won't work.

3 replies

joerghoh
Adobe Employee
Adobe Employee
September 24, 2022

Hi.

 

Do I understand correctly, that you have java code, which tries to connect to the mentioned URL? What approach do you use for authentication?

September 25, 2022

I am trying to hit api through postman and getting unauthorized exception.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
September 27, 2022

Ok, I am using username/password.


What password are you using? You cannot do a POST of your AEM credentials (which you enter either at IMS or at the SSO solution of your company) to AEM, that won't work.

Community Advisor
September 25, 2022

@vandana_ratnaparkhi Did you try hitting api through postman?

September 25, 2022

Yes, but getting access denied.

Community Advisor
September 26, 2022

@vandana_ratnaparkhi That means you will have to pass the credentials to access it.

September 26, 2022

@vandana_ratnaparkhi 

Make sure you are using a bearer token that you generate from AEM development console:

 

And there when you sign in and click on integrations:

 

You can generate a developer token which you could use to make a call and perform requests.

Can you share screenshot of your postman window?