call back event
Thursday, April 29, 2021 at 09:23amHi,
in our current version 11.25, I found for callback event i.e PACKAGE_READY_FOR_COMPLETE, the sessionUser has the account user id information in the request.
{"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_READY_FOR_COMPLETE","sessionUser":"Poil6Eh3Az80","packageId":"waNKnkF9CgKaW0-q3TwuLFJgmT4=","message":null,"documentId":null}
but for PACKAGE_DECLINE, sessionUser contains signer Id who declined the package, and it seems nowhere to indicate the account UID.
{"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_DECLINE","sessionUser":"2bba271e-7e2b-40fc-b254-4d3beefb2efc","packageId":"F2VoV1tqrCpH_LYbv03-kQEhAtI=","message":"test for decline","documentId":null,"createdDate":"2021-02-18T19:34:25.191Z"}
my question is if it's possible to always include account user id in the request? basically we want to know when we receive the callback, we want to identify this callback is from which account? is it possible?
thanks,
Cindy
Reply to: call back event
Thursday, April 29, 2021 at 09:49amHi Cindy,
Below is an example from my test, where the "sessionUser" always refer to the last signer that triggered the notification event and not necessary to be the account UID (in your case it's because the sender's Signer ID is happened to be the same as account UID)
{"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_READY_FOR_COMPLETE","sessionUser":"7c832cff-dc10-4c80-aca8-8ce6def98b12","packageId":"XOHI7W0Bc9YNKAPNifF0kMNs2vU=","message":"{\"requestUserEmail\":\"[email protected]\",\"requestUserUid\":\"7c832cff-dc10-4c80-aca8-8ce6def98b12\",\"triggeredByRequestUserAsSigner\":true}","documentId":null,"createdDate":"2021-04-29T14:40:42.696Z"}
If you have multiple accounts pointing to the same callback service, is it possible to add the account UID as a part of the URL path, like below:
https://mydomain.com/oss/callback/{accountUID}
Duo
Reply to: Hi Cindy, Below is an…
Thursday, April 29, 2021 at 09:57amThanks Duo.
I see what you mean. in our case, we want to have multiple environment (such as sit1, sit2, sit3) all sharing the 1 account, when we receive the callback event, is it possible to identify this event is fromwhich environment?
the reason I am asking is we have lots of environment, currently 1 environment has 1 account which requires lots of manual work to create the account one by one. do you have any idea how we can improve it?
thanks,
Cindy
Reply to: Thanks Duo. I see what you…
Thursday, April 29, 2021 at 10:04amHi Cindy,
Not sure if this helps, but to set up the callback URL can also be automated by code:
eslClient.getEventNotificationService().register(newEventNotificationConfig(URL)
.withKey(KEY)
.forEvent(NotificationEvent.PACKAGE_CREATE)
.forEvent(NotificationEvent.PACKAGE_DECLINE)
.forEvent(NotificationEvent.PACKAGE_COMPLETE));
Which this code can be used as a part of the user provision process.
Duo
Reply to: Hi Cindy, Not sure if…
Thursday, April 29, 2021 at 10:24amwe are using it for now. the Key is per account. if we have sit1 and sit2 share one account
for example, sit 1 creates a package in account A and account A return the callback event "PACKAGE_CREATE" to us, how do we know this event is related to the sit1 environment?
by the way, is there copy tool ready for copying account setting from one to the other so we don't need to manually setup one by one? if so, it might help us a lot.
thanks,
Cindy
Reply to: call back event
Monday, May 3, 2021 at 09:49amHi Duo,
I'd like to follow up with you from my last question, is there any tool for copying the account setting from one to the other? the purpose is we will create lots of accounts and currently we are doing manual account setup which cause some human error. we tried to avoid manual setup if it's possible. please advise.
thanks,
Cindy
Reply to: Hi Duo, I'd like to follow…
Monday, May 3, 2021 at 10:01amHi Cindy,
Sorry for the late reply! Unfortunately, to "Enabled the export of selected OneSpan Sign BackOffice settings from one account to another account." was implemented in release 11.28. This is an out-of-the-box feature in BackOffice, which allows you to export one account's setting to a CSV file and potentially import to another account.
Duo
Reply to: Hi Cindy, Sorry for the…
Monday, May 3, 2021 at 10:04amgood news, so after 11.28 we can have this feature. does it export everything including all the email templates etc?
Reply to: good news, so after 11.28 we…
Monday, May 3, 2021 at 10:07amYes, there are options allowing you to choose if to include email templates and even SAML configurations.
Duo
Reply to: Yes, there are options…
Monday, May 3, 2021 at 10:09amgreat! we are excited to look for using this function.
thanks,
Cindy