cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Manually calling app functions on deployments

Nicolas_Sevcik
Dynatracer
Dynatracer

To further investigate a failing workflow, I wanted to manually trigger the app function it calls using a https request. However, doing just that returns a 403 Forbidden with a missing CSRF token, as expected. What kind of authorization do I need to provide for the request to go through? Please tell me that there is a way that does not involve me going digging for a X-CSRF value in the numerous requests that we send.

1 REPLY 1

christian_barth
Dynatrace Helper
Dynatrace Helper

Hi Nicolas, 

in case you want to authenticate your requests to platform APIs from outside the platform, you need to authenticate them via oAuth. If you are an account admin of your environment, you can create an oAuth client in the Account Management UI. Make sure to select "app-engine:apps:run", as this scope is needed for the functions endpoint.

christian_barth_0-1674204208463.png

 

Featured Posts