Bom pessoal, segue abaixo alguns métodos de autenticação no JasperServer para consulta:
-- Métodos de Autenticação no JasperServer --
-- PRIMEIRO MODELO ---
<html>
<body onload="document.createElement('form').submit.call(document.getElementById('myForm'))">
<form id="myForm" name="myForm" action="http://192.168.1.100:8080/jasperserver/j_spring_security_check" method="POST">
<input type="hidden" name="j_username" value="jasperadmin">
<input type="hidden" name="j_password_pseudo" value="jasperadmin">
<input type="hidden" name="j_password" value="jasperadmin">
<input type="hidden" name="userLocale" value="pt_BR">
<input type=hidden name="submit" id="submit" value="Continue"/>
</form>
</body>
</html>
-- SEGUNDO MODELO ---
<div style="display:none;">
<iframe id="myform_frame" name="myform_frame"></iframe>
<form id="myform" method="POST" action="http://192.168.1.100:8080/jasperserver/j_spring_security_check" target="myform_frame">
<input type="hidden" name="j_username" value="jasperadmin">
<input type="hidden" name="j_password_pseudo" value="jasperadmin">
<input type="hidden" name="j_password" value="jasperadmin">
<input type="hidden" name="userLocale" value="pt_BR">
</form>
<script>document.getElementById("myform").submit();</script>
</div>
-- TERCEIRO MODELO ---
<div style="display:none;">
<iframe id="myform_frame" name="myform_frame"></iframe>
<body onload="document.createElement('form').submit.call(document.getElementById('myform'))">
<form id="myform" method="POST" action="http://192.168.2.157:8080/jasperserver/rest/login" target="myform_frame">
<input type="hidden" name="j_username" value="jasperadmin">
<input type="hidden" name="j_password" value="jasperadmin">
</form>
</body>
</div>
Nenhum comentário:
Postar um comentário