Expand my Community achievements bar.

Authorize Generic backend action

Avatar

Level 2

Hello,

 

I created clean APP Builder application and created an action.

 

So now I'm trying to call this backend action and always getting the same error:

 

"error": "The resource requires authentication, which was not supplied with the request"

 

1) require-adobe-auth: false

2) I do not have a place to create Oauth token, cause there are no services enabled. I'm not sure which exactly service is correct as I do not need any need only action to be executed

3) I tried to generate JWT and oAuth after I added Events API but both do not work. (not 100% I called them correctly, but followed documentation)

4) Also can try to generate oAuth token via API, but I'm not sure which scope is required for just run backend action.

 

Will be happy for any support.

Topics

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

1 Reply

Avatar

Employee

Hi Nuzil, 

 

Try running this:  

aio rt action update ACTION_NAME --web true --web-secure YOUR_PASSPHRASE

 

Then, when you invoke the action, include this header:

"X-Require-Whisk-Auth": "YOUR_PASSPHRASE"

  

Hope that helps!