can someone please help me with the Authorization of the APIs?

anu0327
anu0327 Member
edited October 2 in Q&A #1

I have tried almost everything but it keeps saying error:unauthorized. i dont knowwhat to do and there isnt much time left. I read somewhere that only NA servers can be used for authorization but my account was based in CANADA. so i tried to make a new account but the only options for the regions are AUS,US AND CANADA. now I dont know how to proceed furthur. Please help.

Tagged:

Answers

  • Hi @anu0327 ,

    This below mentioned article very well explains about the authentication.

    https://developer.opentext.com/services/developertools/developer-admin/documentation/authentication/1

  • Shahid M
    Shahid M E Community Moderator

    @anu0327 If you're still having issues, have a look at this post
    https://forums.opentext.com/forums/developer/discussion/312658/opentext-apis-quick-start-guide

  • @Shahid M in the guide it says we can do it using the canaddian server but i read somewhere that only the north american servers can be used for swagger authorization

  • Shahid M
    Shahid M E Community Moderator

    @anu0327 the swagger documentation has since been updated so you will now see all the regional servers listed.

  • Karen Weir
    Karen Weir E Community Administrator
    edited August 12 #6
  • @Shahid M im trying to authorize the workflow API by following the guide but it just keeps saying

    auth error

    Error: response status is 401, error: unauthorized, description: authentication failed

    i dont understand whats the problem im following each and every step

  • @Shahid M

    im trying to authorize the workflow API by following the guide but it just keeps saying

    auth error

    Error: response status is 401, error: unauthorized, description: authentication failed

    i dont understand whats the problem im following each and every step

  • Shahid M
    Shahid M E Community Moderator

    @anu0327 the authentication is a separate API call and is same across all Services. If you're doing this in swagger, you need to make sure you use the Authenticate option…

    Then, on the Authentication screen, make sure you pick the correct region…

    Let's take this discussion via email. I will send you some questions so I can understand how you are trying out the Workflow APIs. Thanks.

  • gvicari
    gvicari E Community Moderator

    You can try another "from scratch" path.

    There is a step by step tutorial that sets you up to test connecting to an organization and deploying and testing an app. This should work from any region. This is the link to it: https://mimage.opentext.com/ot/2/devx/vscode/latest/vscode-tutorial.pdf.

    Note though that the tutorial currently still refers to the default region na-1-dev when creating a connection profile in VS Code, and you should select yours (ca). Also, if you only want to test whether your connection works, it is recommended to go directly to the chapter that describes testing the app (currently: chapter 15 "Test the Contract Approval application").