users@glassfish.java.net

is it possible to call a RESTful web service method on JAAS Glassfish server

From: <forums_at_java.net>
Date: Wed, 9 Nov 2011 06:21:08 -0600 (CST)

 On my glassfish server i have configured JAAS. User need to login first to
call any page in my Application. This is right so.

But i have a public area (root/public/*) where anyone (without any
authorization on server) can call a page (index.html) with some web service
method calls.

My problem is: i can not call a web service method without authorization from
not authorized application area. I have already configured my web.xml file
with all possible url patterns to access it.

For example i can access a image or another sources, but it not works for my
web service methods. The url or path to them can be founded, but in a body of
a json i see only:

<form method="post" action="j_security_check" name="login_form">

<table border="1" cellpadding="0" cellspacing="0" bgcolor="#c8dcf9"
bordercolor="black" style="border-style:outset;border-collapse:collapse;
margin-top: 50px;" align="center"> <tr> <td><label>Username:</label></td>
<td><input name="j_username" maxlength="20"></td> </tr> <tr>
<td><label>Passwort:</label></td> <td><input name="j_password"
type="password" maxlength="20"></td> </tr> <tr> <td
nowrap="nowrap">&nbsp;</td> <td> <input type="submit" value=" Login "
align="right" onclick="this.disabled = true; this.value = 'please wait...';
this.form.submit();"> </td> </tr> </table>
 

It is means, that somhow it must be authorized first to call a method. Can i
avoid it for my public area?

 

p.s. sorry for my english :)


--
[Message sent by forum member 'maddos']
View Post: http://forums.java.net/node/861979