Skip to main content
Participant
October 25, 2024
Question

Unauthorized OAuth when getting Assets from within AEM Runtime Action

  • October 25, 2024
  • 2 replies
  • 252 views

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-assets 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?

    This topic has been closed for replies.

    2 replies

    kglad
    Community Expert
    Community Expert
    October 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">
    RySchnaufAuthor
    Participant
    October 25, 2024

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

    kglad
    Community Expert
    Community Expert
    October 25, 2024

    it's moved but not experience league