Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Unauthorized OAuth when getting Assets from within AEM Runtime Action

New Here ,
Oct 25, 2024 Oct 25, 2024

I am using a runtime action to do some post processing and integrations with other systems after an Asset in AEM is published. I need to be able to do a get request based on the path from the parameters passed into the Runtime action. When using a local JWT token (or setting up JWT) I can pull down the data on the assets. 

 

The issue I run into is that when using OAuth, I can get a Bearer Token but using that Bearer Token results in a 401 unauthorized error when getting the asset. I have tried reading through a lot of the docs for the various APIs I can configure from the project to add to the OAuth Scope but keep running into the same unauthorized error. I have looked through the docs on https://experienceleague.adobe.com/en/docs/experience-manager-65/content/assets/extending/mac-api-as... on CRUD API  calls for assets but OAuth scope is never mentioned for being able to access these endpoints. 

What am I missing in being able to access the assets from within a Runtime Action?

289
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2024 Oct 25, 2024

in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



<"moved from using the community">
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 25, 2024 Oct 25, 2024

This has already been moved? I am not seeing it under the experience league communities you linked

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2024 Oct 25, 2024
LATEST

it's moved but not experience league 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2024 Oct 25, 2024
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines