Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Basic Authentication using email and password of logged in user
Hello,
I am trying to call Liferay commerce API which requires Basic Authentication. If I hardcode email password it works well, but I want to access Basic Authentication Base64 encoded credentials. Can anyone please let me know how can I access these in liferay.
Thanks
Hi,
Basic Authentication Base64 encoded credentials - Needs to be formed using username and password as below,
In Header you can pass below values
Name - Authorization
Value - Basic Base64(username:password)
You can refer below
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™