Blue Prism Product

 View Only
last person joined: 14 hours ago 

This community covers the core Blue Prism product.

  • 1.  Oauth 2 token

    Posted 13 days ago
      |   view attached

    Hello ALL, 

    We have few APIs need to authinticate via Ouath2 , 

    I have set all the parameter ,client id , secret.....etc, 

    BP always genrate worng token when i try it on Postman! 

    If i do same request in post man it works perfictly same parameters! 

    is this happend to anyone ? any ideas?



    ------------------------------
    Hazem Farajallah
    RPA-developer
    e-on
    Europe/Malmo
    ------------------------------



  • 2.  RE: Oauth 2 token

    Posted 13 days ago
    HI Hazem,

    By wrong token, do you mean mean the subsequent API calls gives you 401 with a token that was generated using BluePrism?

    If you can post a snapshot of POSTMAN configuration vs BluePrism configuration, we can compare and comment on what's the potential issue.


    ------------------------------
    Shashank Kumar
    DX Integrations Partner Consultant
    Blue Prism
    Singapore
    +6581326707
    ------------------------------



  • 3.  RE: Oauth 2 token

    Posted 13 days ago

    Hi kumar, thanks for answering 

    i have it stright fowrad i send the parameter in the body ,

    Yes its give me 401, with all token from BP. 



    ------------------------------
    Hazem Farajallah
    RPA-developer
    e-on
    Europe/Malmo
    ------------------------------



  • 4.  RE: Oauth 2 token

    Posted 13 days ago
    Hi Hazem,

    I noticed above that in postman the x-www-form-urlencoded option is selected for the body.

    www form urlencoded uses a slightly different language which Postman automatically converts for you however BluePrism does not.

    What you will need to do it to convert your body from JSON into this new format as Shashank has detailed. Postman allows you to select between JSON and raw text but BluePrism will automatically convert this so you just need to set the body as the text in the following format with appropriate values but without quotation marks. 

    grant_type=client_credentials&client_id=[XXXXX]&client_secret=[XXXXX]&resource=https://api.prod.digitalchargingsolutions.com/b2bgateway

    You will also need the header Content-Type of applciation/x-www-form-urlencoded in the headers section of this call or API in BluePrism.

    Here is a similar issue that was faced by another community member where it was resolved following these steps. https://community.blueprism.com/communities/community-home/digestviewer/viewthread?MessageKey=56f84dee-6882-4325-93db-427505fcf9c8&CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01#bm56f84dee-6882-4325-93db-427505fcf9c8

    Hope this helps, reach out if you have any further issues.

    ------------------------------
    Ronan Considine
    Senior Business Analyst
    Blue Prism
    ------------------------------



  • 5.  RE: Oauth 2 token

    Posted 12 days ago

    Hello Thanks for answering, 

    I have done it as below i got this error msg now "Internal : Unexpected error Error during Web API HTTP Request
    HTTP Status Code: 400
    HTTP Response Content: {"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'grant_type'.\r\nTrace ID: 1efa6a7a-ac67-49fa-97a1-a1d0d4290e00\r\nCorrelation ID: 437de48a-2543-461f-ae2f-0abdadbaab12\r\nTimestamp: 2022-06-14 07:41:29Z","error_codes":[900144],"timestamp":"2022-06-14 07:41:29Z","trace_id":"1efa6a7a-ac67-49fa-97a1-a1d0d4290e00","correlation_id":"437de48a-2543-461f-ae2f-0abdadbaab12","error_uri":"https://login.microsoftonline.com/error?code=900144"}


    "

    I set the header for applciation/x-www-form-urlencoded and the request body"grant_type=client_credentials&client_id=[XXXXX]&client_secret=[XXXXX]&resource=https://api.prod.digitalchargingsolutions.com/b2bgateway "



    ------------------------------
    Hazem Farajallah
    RPA-developer
    e-on
    Europe/Malmo
    ------------------------------



  • 6.  RE: Oauth 2 token

    Posted 12 days ago
    @Hazem Farajallah

    What's the Authentication Type that you have set for the WebAPI? Is it None or OAuth2?

    If you are retrieving the token by calling one of the actions of the WebAPI (and not using the built in functionality of the WebAPI for OAuth2 authentication)​ then the Authentication Type will have to be set to None.


    ------------------------------
    Shashank Kumar
    DX Integrations Partner Consultant
    Blue Prism
    Singapore
    +6581326707
    ------------------------------



  • 7.  RE: Oauth 2 token

    Posted 11 days ago

    @Shashank Kumar this should be Ouath2 to return a token for other API,s   So up i set it to none so i can retrive the token and send it from the process to the other web API.

    I have done that before but it was not Oauth2.

    ​​



    ------------------------------
    Hazem Farajallah
    RPA-developer
    e-on
    Europe/Malmo
    ------------------------------



  • 8.  RE: Oauth 2 token

    Posted 2 days ago
    Hi Ronan,

    What is this format called?
    "grant_type=client_credentials&client_id=[XXXXX]&client_secret=[XXXXX]&resource=https://api.prod.digitalchargingsolutions.com/b2bgateway"

    how can i convert below JSON code to the one which BP can accept for applciation/x-www-form-urlencoded?

    tradeReqJson:[{"accountName":"XXXX","securityID":"xxxxxxx","securityFilingVal":"xxxxxx","accountFilingVal":"xxxx","ruleID":xxxxx,"processIdentifier":"N","toDateStr":"xxxxx"},{"accountName":"XXXXX","securityID":"xxxxx","securityFilingVal":"xxxxxx","accountFilingVal":"xxxx","ruleID":xxxxx,"processIdentifier":"N","toDateStr":"xxxxx"}]

    ------------------------------
    Meng Yu
    Process Solution Senior Analyst II
    FIL
    Asia/Hong_Kong
    ------------------------------



  • 9.  RE: Oauth 2 token

    Posted 13 days ago
      |   view attached

    hi this is directly in the body!



    ------------------------------
    Hazem Farajallah
    RPA-developer
    e-on
    Europe/Malmo
    ------------------------------



Welcome to the Blue Prism Product Community!

Whether you’re looking to manage a complex infrastructure, maintain security and compliance, bring new products to market faster, or gain operational speed and agility in an uncertain economy, Blue Prism delivers — with the flexibility you need to create the business you want. From deployment on-premise, through a cloud service provider or as SaaS, to a skillful and adaptable digital workforce that continually expands to meet your enterprise needs, you can gain enhanced operational insight and control while your people reclaim the time they need to focus on great work.

Product PageKnowledge BaseBlue Prism Training Offering

FAQs

Blue Prism is intelligent automation — business-developed, no-code automation that pushes the boundaries of robotic process automation (RPA) to deliver value across any business process in a connected enterprise.

A combination of RPA with expanded cognitive and AI capabilities, Blue Prism is different than other automation technology on the market. With one Blue Prism license, you gain instant access to an already AI equipped digital workforce, along with the tools you need to build and delegate automations. Click here for more information on Blue Prism and Intelligent Automation.
To learn more about how Blue Prism can help your organization and how much it will cost to get started, please Contact our Sales department.
Blue Prism can be downloaded from our customer portal. If you would like to consume or download any material it is necessary to create an account on the Portal. Once you have registered, you can access the download options for Blue Prism here.
Yes! Installed on your own machine and supported by our training materials and product documentation, you can use all the features of the full enterprise product for free with our Blue Prism Trial – giving you the opportunity to learn the basics before moving to a full production implementation. Click here for more information and to download the trial.
Yes! You can access our known issue list for Blue Prism from our Support Portal.
Regardless of your industry, Blue Prism’s Digital Workforce can adhere to strict governance and compliance standards without limiting productivity. Click here for more information on how your industry can benefit from Blue Prism.