Focal Point
[CLOSED] Integrate Webfocus with our existing application

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9817021196

February 18, 2019, 06:57 AM
Praveen Mora
[CLOSED] Integrate Webfocus with our existing application
Hi,

Can someone help me on how to integrate webfocus with my existing aplication using trusted ticket authentication, tried with documentation but i'm getting 403 when i send token in http request.

::::: Below is my code ::::

$.ajax({
contentType: "text/xml;charset=UTF-8",
// must set the withCredentials option or the WebFOCUS session cookie won't be passed on the redirect to wf_csrf_check.jsp in Cross-Domain scenarios
xhrFields: {
withCredentials: true
},
crossDomain: true,
type: "POST",
url: webfocusHost + '/service/wf_security_trusted.jsp?IBIB_appname=' + trustedAppName + '&IBIB_ticket=' + trustedTicket+'&IBIB_destination= /ibi_apps/welcome' ,
dataType: 'xml',
async: false
})
.error(function(jqXHR, textStatus, errorThrown){
// debugger;
// alert(textStatus);
// loadPages();
})
// trusted ticket signon response includes the CSRF now so no need to call wf_csrf_check.jsp
.success(function(response){
var $result = $(response).find('auth_result>result');
IBI_CSRF_Token_Name = $result.attr('CSRFTokenName');
IBI_CSRF_Token_Value = $result.attr('CSRFTokenValue');
loadPages();
});

This message has been edited. Last edited by: FP Mod Chuck,
February 18, 2019, 06:58 AM
Praveen Mora
I tried with method type GET and with out destination.
February 19, 2019, 12:41 PM
FP Mod Chuck
Praveen

I think you should open a case with techsupport they will probably need some traces to debug this issue.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats