* JFu <
foreve...@gmail.com> [2013-11-07 08:28]:
> Our web application written in Java is deployed on Apache Tomcat6.
[...]
> 1. user login to our website
> 2 A link to access the third party portal will be displayed to them.
> 3. By clicking the link, without authentiction again, they are able to
> send to required fields and login to third party portal and see their data.
>
> Since the third party portal is php environment, they have simpleSAMLphp
> installed and configured as SP, we also installed simpleSAMLphp and
> configured as Idp. I have several questions to ask and would like to your
> help.
It won't work like that out of the box. Assuming your Java servlet is
where subjects log in, you would either need to turn that into a SAML
SP (and defer authentication to your SimpleSAMLphp IdP) or write your
own SimpleSAMLphp auth source that will bootstrap a SimpleSAMLphp
session based on the subject having previously authenticated at your
Java servlet. (Which usually means running SSP and the authenticating
app in the same webserver to share a HTTP Cookie. You could front
Tomcat with httpd and run SSP there.)
There are numerous discussions in the list archives about that.
> 1. The third party portal asks us to provide three informations ID1, ID2
> and type. All these information will be got when user login to our website
> and stored in session. I am thinking of creating a php page to get these
> value from the link
https://idaddress/testphp.php?id1=&id2=&type=, which is
> posted on the web page when user login. My question is how I maintain the
> session between Java app and simplesamlphp?
SimpleSAMLphp has a few methods built-in to retrieve data about the
current principal, such as LDAP or SQL. I don't know about any
webservice-like things but if there is nothing and that's the only way
you can expose data from the Java servlet to your IdP you'd need to
write that yourself (including inventing a secure protocol for that
communication).
Assuming the Java servlet has to persist and load any data about the
subjects from disk or from a database or network daemon, well, this is
where your SimpleSAMLphp IdP would fetch it just the same -- get it
from the source, not from the Java servlet.
> We plan to use example-static module and told we could configure
> example-static like the code below, but I don't know where I should place
> three URL parameters so that they can be accessed in authsources.php.
> 'example-static' => array(
> 'exampleauth:Static',
> 'id1' => $_GET['id1'],
> 'id2' => $_GET['id2'],
> 'type' => $_GET['type'],
> ),
Have a look at authsources.php and the authsource documentation. If
that doesn't clear it up, be more specific about what is unclear.
-peter