I have a dashboard app that calls an API endpoint. The dashboard has the “grant app token” option enabled and so I am using -Headers @{ Authorization = “Bearer $PSUAppToken” } to pass the dashboard user’s credential to the endpoint. I’d like this endpoint to then call a second endpoint. Is there a way to pass the credential through again? I’m trying to add the same bearer token to the header but it doesn’t seem to be working.
Pass the token into the body and retrieve it into a variable in the first endpoint. You can the pass the variable again into the header of the second endpoint call.