09-17-2014 09:03 AM
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript">
jQuery.support.cors = true;
var urlTicket = "${url.serviceContext}/api/login?u=" +${un}" "&pw=" +${up};
var ticket = "";
var request = $.get(urlTicket, function(data,status){
ticket = data.toString().substring(48,95);
//window.location.href = "${url.serviceContext}/doAct?nId=${nId}${arguments}&alf_ticket="+ticket;
},'html'
);
request.error(function(jqXHR, textStatus) {
if (textStatus == 'error'){
status.code = 403;
status.message = "User not found.";
status.redirect = true;
}
});
</script>
<title>Show file</title>
</head>
<body>
…
</body>
</html>
un=admin
up=aold_pss
09-20-2014 10:26 AM
nodeAct.get.html.ftl
in share ,you don't need to login again to get the ticket,you can access the repository through the proxy servlet.nodeAct.get.html.ftl
in your own application ,you can submit your reqeust to a proxy servlet in your application,in your proxy servlet read nodeAct.get.properties
file ,call repository login api and then return ticket to browser.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.