Category : bearer-token

So I have a route in my backend application (C#) that generates a .csv file. When I add the [AllowAnonymous] tag in the function that returns the file, it works flawlessly with the following code on the web application (angularJS): <a class="btn btn-success" target="_blank" ng-href="{{csvUrl()}}">Download</a> Although, I noticed that the ‘initiator’ of the request is ..

Read more

I am trying to make a PUT/DELETE request to upload or delete files in Azure Storage blob but it shows the following error after making the request: 403 This request is not authorized to perform this operation using this permission. { ‘content-length’: ‘279’, ‘content-type’: ‘application/xml’, server: ‘Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0’, ‘x-ms-request-id’: ‘4de6c154-f01e-0051-7ce4-1314ef000000’, ‘x-ms-version’: ‘2018-03-28’, ‘x-ms-error-code’: ‘AuthorizationPermissionMismatch’, date: ..

Read more

let submitGitRepoURL=async(gitRepoURL,gitUserToken)=>{ console.log("gitRepoURL=",gitRepoURL, "gitUserToken=", gitUserToken); if(gitRepoURL!==null) await Axios.get(gitRepoURL, {header:{‘Authorisation’:Bearer ${gitUserToken}}}) .then((reponse)=>{ console.log(reponse.data); }) .catch((error)=>{ console.log("error in git get",error); }) } Source: Ask Javascript..

Read more

I am looking at https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/quickstart_code.htm After getting the Salesforce Version, I am try trying to get a list of resources. This is the normal way I would access a 3rd party API, but is resulting in a 401 error as if I am unauthorised. I believe I am using the correct token but perhaps this ..

Read more