The access token does not work on the blockchain workbench

auricio 21 Reputation points
2021-03-03T03:03:02.117+00:00

I'm having trouble using the access token to access the blockchain workbench API, I'm using /oauth2/token to get the access token, but the access token doesn't work on the blockchain workbench. For some reason id_token is working when I send it to the blockchain workbench API.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,306 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SanaCMSFT-8922 301 Reputation points
    2021-03-22T07:34:44.193+00:00

    Ideally, access token should be used for API calls and not id token. Could you tell us if you see a WWW-Authenticate response header in the response that you obtain? It should contain info about why you are facing unauthorized error. You can also try checking the troubleshooting logs using the troubleshooting script sent before as it may also contain info about why you are facing the error accessing the API.
    May we also know the library you are using to generate the access token and any documentation that you are following?
    And, just in case, please make sure that you are not using an expired token and please generate a new one in case it is expired.

    0 comments No comments