--
You received this message because you are subscribed to the Google Groups "simpleSAMLphp" group.
To post to this group, send email to simple...@googlegroups.com.
To unsubscribe from this group, send email to simplesamlph...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simplesamlphp?hl=en.
I use mod_mellon in order to protect the backend server from unauthorized access.
A sort of SSO against the backend server is done by authenticating the user using curl and forwarding this session to the user / client. I have modified the basicuserpass module to achieve this.
This works OK, but when the session from the backend expires before the session from mod_mellon, problems arise. So I would like to detect that the session from the backend has expiered, and force a logout from mod_mellon.
So the question is; what is the best way to do this?
The backend servers are SAP.
I realize that this question might belong to the mod_mellon mailinglist, but hopefully someone here will
Hi!
Sorry for the slooow reply.I use mod_mellon in order to protect the backend server from unauthorized access.
A sort of SSO against the backend server is done by authenticating the user using curl and forwarding this session to the user / client. I have modified the basicuserpass module to achieve this.
This works OK, but when the session from the backend expires before the session from mod_mellon, problems arise. So I would like to detect that the session from the backend has expiered, and force a logout from mod_mellon.
So the question is; what is the best way to do this?
The backend servers are SAP.
I realize that this question might belong to the mod_mellon mailinglist, but hopefully someone here will
Hi Robert,On Feb 18, 2013, at 14:58 PM, Robert Myhren <rob...@basis-consulting.com> wrote:Hi!Sorry for the slooow reply.I use mod_mellon in order to protect the backend server from unauthorized access.
A sort of SSO against the backend server is done by authenticating the user using curl and forwarding this session to the user / client. I have modified the basicuserpass module to achieve this.
This works OK, but when the session from the backend expires before the session from mod_mellon, problems arise. So I would like to detect that the session from the backend has expiered, and force a logout from mod_mellon.
To be honest I still don't get what you are doing exactly. My guess is:- You have a SAP server (what you call backend) that provides the user base (that is, it's the one who is able to authenticate users).- You also have a proxy server to allow access to the SAP server(s). Access to the proxy itself is controlled by mod_mellon.- mod_mellon is connected to a simpleSAMLphp IdP for authentication.- The simpleSAMLphp IdP performs login/pass authentication by forwarding the credentials to the SAP server in a backchannel, getting a session from it.
Is this correct? I also understand that you have multiple SAP servers, and what you call a "session from the backend" is a logon ticket that allows SSO among all the SAP servers.
So the question is; what is the best way to do this?
The backend servers are SAP.
I realize that this question might belong to the mod_mellon mailinglist, but hopefully someone here will
I think there's several ways to achieve this. The first one could be lowering down the session timeout at the IdP (SSP) and mod_mellon, making them re-authenticate often, so that you can check again the session from the backend and see if it's still valid.
Another way would be to gather the backend's session lifetime somehow in your custom module, and make SSP issue its own session with the same expiration time.
But of course all of this depends on my previous assumptions being correct...
They are:)
--Jaime PérezUNINETT / Feidemail: jaime...@uninett.noxmpp: ja...@jabber.uninett.no"Two roads diverged in a wood, and I, I took the one less traveled by, and that has made all the difference."
- Robert Frost
--
You received this message because you are subscribed to the Google Groups "simpleSAMLphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.
Visit this group at http://groups.google.com/group/simplesamlphp?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
I think there's several ways to achieve this. The first one could be lowering down the session timeout at the IdP (SSP) and mod_mellon, making them re-authenticate often, so that you can check again the session from the backend and see if it's still valid.Yes, but this is killing usablility.
Another way would be to gather the backend's session lifetime somehow in your custom module, and make SSP issue its own session with the same expiration time.Could be a solution.But is it not possible to check for either errorcodes related to a no session situation, or the absent of a session cookie?
I have tried the following:RewriteCond %{REQUEST_URI} !^/(simplesamlphp|mellon/.*)$RewriteCond %{HTTP_COOKIE} !^MYSAPSSO2$RewriteRule ^/(.*) /mellon/logout?ReturnTo=/logged_out.html [R]In the absent of MYSAPSSO2 (session cookie), redirect to logout.No working as I would like it to...
An endless loop. 302.This is due to a logical error that I am not able to get around.But I bet its simple once I see it...:)The problem is that, once logged out, the client is redirected once again due to the lack of MYSAPSSO2 while still outside /simplesamlphp|/mellon.So the problem is not getting logged out, but avoid continuing being logged out once logged out:)And my brain is stuck....
I would like to avoid the other options as long as I can, and to the checks outside SAP