How can I restrict a webservice through SRA by user

Hi,

currently, we have a webservice authenticating by IP. We are installing the JES Portal Server and SRA.

How can we continue authenticating the webservice by client IP, if the request pass through gateway SRA without modify the webservice.

The problem is, the webservice is not available for all users. Other solution can be restrict the access to the webservice to some users. How we can get restricted by user?

Thanks in advance for your answer.

Oscar Armando

[507 byte] By [oscar.lozano] at [2007-11-25 20:41:13]
# 1

> How can we continue authenticating the webservice by

> client IP, if the request pass through gateway SRA

> without modify the webservice.

You can not. If the request is going the SRA, then that is what your web app will think the client IP is.

> The problem is, the webservice is not available for

> all users. Other solution can be restrict the access

> to the webservice to some users. How we can get

> restricted by user?

Sorry, again. The gateway service is only configurable globally. It can not be changed be user.

One suggestion would be to exclude this webservice from SRA, so that links to it are not rewritten, and requests for it do not go through SRA. Then, requests come directly from the client to the webservice, which properly authenticates by IP. Under the 'Rewriter' tab, add the webservice to the URI's not to rewrite box.

djlarsu at 2007-7-4 18:18:30 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

With the post authentication class, you can find if the user is coming through a gateway. Depending on that you may add role to the user session. And you may associate an access list to the role.

So, it's possible to restrict access when users are coming through a gateway. We had a proof of concept class but I can't find it anymore.

vvlier at 2007-7-4 18:18:30 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3
I don't know this post authentication class.Where run this class?Thanks for your help.Oscar Armando
oscarlozano at 2007-7-4 18:18:30 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4
The post-authentication class is defined into the authentication module configuration.You can find information about the implementation of a post authentication class here: http://docs.sun.com/source/817-5710/prog_auth.html#wp60489
vvlier at 2007-7-4 18:18:30 > top of Java-index,Web & Directory Servers,Portal Servers...