[JIRA] Commented: (SSPCPP-396) Simplify logout support for Native SP
Chan, Stephen (Steve) (JIRA)
noreply at shibboleth.net
Mon Mar 26 19:05:16 BST 2012
[ https://issues.shibboleth.net/jira/browse/SSPCPP-396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973#comment-13973 ]
Chan, Stephen (Steve) commented on SSPCPP-396:
----------------------------------------------
Hi Scott,
In the apache config, you can specify:
<Location /protected>
AuthType shibboleth
ShibRequestSetting requireSession On
require valid-user
</Location>
Once you set this in your config file, the NativeSP takes care of redirecting the client to an IdP and returning them to the protected location once they are logged in. The application doesn't even need to be modified if REMOTE_USER is setup to contain the username.
I would like a complementary configuration directive that logs out the user's NativeSP session. Currently the application needs to be modified to redirect the browser to /Shibboleth.sso/logout?return=URL
Something like:
<Location /logout>
AuthType shibboleth
ShibRequestSetting requireSession off
ShibRequestSetting requireLogout on
</Location>
Where the "requireLogout" setting tells the module force a redirect to Shibboleth.sso/logout if the browser has an active session. In this way, the logout URL of an application can take care of the application logout, without needing any special code logout of the NativeSP session as well.
It doesn't have to be implemented like this of course, but I (and others I have spoken to) would like this kind of functionality.
Steve
> Simplify logout support for Native SP
> -------------------------------------
>
> Key: SSPCPP-396
> URL: https://issues.shibboleth.net/jira/browse/SSPCPP-396
> Project: Shibboleth SP - C++
> Issue Type: New Feature
> Security Level: Standard(Standard bug, may impact functionality but does not represent a security vulnerability )
> Components: SAML 2.0 Logout
> Environment: MacOS and CentOS
> Reporter: Chan, Stephen (Steve)
> Assignee: Scott Cantor
> Priority: Minor
> Labels: Session
> Fix For: 2.5
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> Logouts from NativeSP shib sessions are not as transparent and clean as logins. Specifically:
> 1) The NativeSP module for Apache will transparently redirect the user to the IdP for login, filling in the return URL. Logouts currently don't have comparable support - the application needs to perform the redirect or Apache rewrite rules need to be created to construct the redirect and return url. It is all doable, but logout support requires a lot more monkeying around than login. Adding this would make it possible for lots of legacy web apps to transparently handle login and logout from shib.
> 2) The names of cookies used for shib sessions are undisclosed. If an application wants to expire the cookies/sessions without doing a redirect the recommended practice is to kill any cookie that doesn't look familiar. This is unsatisfactory and it would be helpful to have some attribute that enumerates the names of the shib session cookies. The particular issue with this is that shib support may be only a single module in a package that has multiple modules, and it isn't possible to know all the cookie names used by other modules. The general problem with this is "hygiene" related - killing state based on a guessing game has unknown side effects.
> The changes are hopefully trivial to implement, and I think they do improve the usability of the tools - at least for admins and integrators.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the commits
mailing list