User Credentials in Callback Event
Thursday, July 27, 2017 at 06:37amHello Folks
We have a requirement to authenticate the callback requests using a system user before we can process the callback. Apart from the callback key solution where we would have to combine username/password encrypted string, is there a way where esignlive would accept username and password separately from us, store it in encrypted form and send it along with the callback event?
Thanks
Reply to: User Credentials in Callback Event
Friday, July 28, 2017 at 05:09amReply to: User Credentials in Callback Event
Monday, August 27, 2018 at 03:40pmReply to: User Credentials in Callback Event
Tuesday, August 28, 2018 at 09:30amReply to: User Credentials in Callback Event
Tuesday, August 28, 2018 at 03:19pmThanks Dou. But this forum link https://community.onespan.com/forum/callback-failing says that callback key texbox = key value in the Authorization : Basic [ key] . So in my case the callback url has 2 Auth headers , one header being in the Authorization : Basic [Key] and the other header being X-API-KEY : [key] . Please advise
Reply to: User Credentials in Callback Event
Wednesday, August 29, 2018 at 05:54am@PostMapping("/callback") public String video(@RequestBody String body, @RequestHeader HttpHeaders headers) { System.out.println("receive a request..."); System.out.println(headers.get("Authorization")); System.out.println(body.toString()); return "index"; }This the what printed in the console:receive a request... [Basic callbackKey] {"@class":"com.silanis.esl.packages.event.ESLProcessEvent","name":"PACKAGE_CREATE","sessionUser":"18EZDL44xgsX","packageId":"MCZ48z0FyrO3NYLgqBOXvMNmYGY=","message":null,"documentId":null,"createdDate":"2018-08-29T14:44:16.945Z"}So I think it's impossible for you to set two parameters in Request Headers and verify the request directly. But you can combine and pass these two values in "Authorization". Please let us know if this works for you. Duo