Genesys Cloud - Main

 View Only

Discussion Thread View
  • 1.  Generating Custom Action authorization code

    Posted 09-10-2019 16:38
    I need to dynamically generate an authorization code in order to authenticate my Custom Action for submitting a card transaction. The code needs combine a set of fields (among them the current date) in an HMAC-SHA256 signature that is base64 encoded. Here are the specs for anyone interested: https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/json/authentication.html?paymentPlatform=ALL

    I was looking at the documentation for something similar (https://help.mypurecloud.com/articles/how-to-use-the-user-defined-oauth-credential-type/), but this does not go far enough. Two questions remain: 
    1. How to encode with HMAC-SHA256?
    2. How to include the current timestamp in the signature?

    Any insight is much appreciated.
    #Integrations

    ------------------------------
    Sven Schiller
    Kognitiv
    ------------------------------


  • 2.  RE: Generating Custom Action authorization code

    GENESYS
    Posted 09-16-2019 14:51
    Hi Sven,

    Thanks for posting your question in the community! It was discussed in the most recent episode of the PureCloud Community Q&A Show! Check it out here!

    Although your question stumped our expert, we posted it to the community Bounty Board, where members can find it and hopefully get you some answers!

    ------------------------------
    Cole Callahan
    Genesys - Employees
    Online Community Coordinator
    ------------------------------



  • 3.  RE: Generating Custom Action authorization code
    Best Answer

    Posted 09-16-2019 15:08
    LOL. To be fair, this question was probably more for the developers forum, where I also posted it (https://developer.mypurecloud.com/forum/t/generating-a-custom-action-authorization-code/6005) and got the following response from Tim Smith and Richard Schott:
    This is beyond the capabilities of data actions (HMAC-SHA256 is not currently in the data actions toolkit). You will need to develop a middleware service that the data action calls with the necessary data from PureCloud.

    Thanks to all who spent time on my question!


    ------------------------------
    Sven Schiller
    Kognitiv
    ------------------------------



  • 4.  RE: Generating Custom Action authorization code

    GENESYS
    Posted 09-16-2019 15:48
    Well...ya know, that was going to be my next response... :-)

    ------------------------------
    George Ganahl GCP (PureCloud) ICCE CCXP
    Principal Technology Consultant
    Genesys
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources