Forum Discussion

Waqas Chaudhry's avatar
Waqas Chaudhry
Copper Contributor
Sep 05, 2018

Azure Blockchain workbench API is not returning list of applications

Dear Blockchain gurus,

 

We followed below link to create Azure Blockchain workbench infrastructure.

https://docs.microsoft.com/en-us/azure/blockchain-workbench/blockchain-workbench-deploy

 

Created default sample application following steps as mentioned.

https://docs.microsoft.com/en-us/azure/blockchain-workbench/blockchain-workbench-create-app

 

Granted permissions as mentioned on above links. However as mentioned by Microsoft about APIs on following link: https://docs.microsoft.com/en-us/azure/blockchain-workbench/blockchain-workbench-use-api giving us 401 error.

 

We try to use built-in swagger URL but no luck as well as following examples of AUTH. https://github.com/Azure-Samples/blockchain & https://github.com/Azure-Samples/blockchain/blob/master/blockchain-workbench/rest-api-samples/dotnet/readme.md

But no luck so far to after getting authentication token but workbench gateway API is unaccusable.

 

We would suggest to create your own workbench application following above steps which will not take more than 2 hours and try to access API using swagger. Otherwise we can share with you our subscription and deployment details.

 

Please find attached, which have 401 authorization error’s source code (Client Code).

Please let me know if conference call is needed to explain further.

12 Replies

  • Zeyad Rajabi: Bearer-token-retrieval is intended to use during development phase, while the solution that Waqas Chaudhry have published is what we are using in production app. Moreover, I would like to request @blockchain to enable support for service to service token retrieval as well in WorkBench Resulful API, because in some scenarios we needed this.
  • Waqas Chaudhry's avatar
    Waqas Chaudhry
    Copper Contributor

    Please find the complete fix on this blog URL, that i just published.

    https://waziray.wordpress.com/2018/10/14/error-401-on-azure-blockchain-workbench-apis-swagger/

  • I recommend looking at:

    https://github.com/Azure-Samples/blockchain/tree/master/blockchain-workbench/auth-samples/bearer-token-retrieval 

    • Waqas Chaudhry's avatar
      Waqas Chaudhry
      Copper Contributor

      Thanks Zeyad, attached error occurred while accessing link. 

       

      • Zeyad Rajabi's avatar
        Zeyad Rajabi
        Former Employee

        Try https://github.com/Azure-Samples/blockchain/tree/master/blockchain-workbench/auth-samples/bearer-token-retrieval

Resources