Code Monkey home page Code Monkey logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
This code is golden. Now I have managed to successfully do a SLO initiated from 
the SP, logging out from all SPs and IdP and returning to SP where it was 
initiated. This should be included in the project.

Original comment by [email protected] on 19 Aug 2014 at 7:36

from drupalauth.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
With these changes, it logs out from the SP but not from the IdP site, while 
the browser remains on the SP (what I want). Without these changes, it logs out 
from both but the browser goes to the IdP (what I do not want). Both sites are 
Drupal 7 sites. Is there a way to get logged out from both with the browser 
remaining on the SP?

Original comment by [email protected] on 21 Feb 2015 at 10:44

from drupalauth.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
"unset($_SESSION['uid']);" often causes a warning: "Undefined variable: 
_SESSION in sspmod_drupalauth_Auth_Source_External->logout() ...". Check if set:

if (isset($_SESSION['uid'])) {
   unset($_SESSION['uid']);
}

Original comment by [email protected] on 21 Feb 2015 at 10:50

from drupalauth.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
Yesterday, I wrote (in #2): "With these changes, it logs out from the SP but 
not from the IdP site, while the browser remains on the SP." Having considered 
it, I think this is the required behaviour as more SPs can be linked to the 
same IdP, therefore it would be bad to log out from the IdP too.

Original comment by [email protected] on 22 Feb 2015 at 8:43

from drupalauth.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
For me it logs out from the IdP also and sends the logout request to all active 
SPs. I think that's how it's supposed to work, if user would logout only from 
one SP, it would be easy to forget another SP active. If the user doesn't want 
to logout from IdP he can just close the browser window of the SP, leaving the 
IdP and all other SPs active.

Original comment by [email protected] on 23 Feb 2015 at 8:08

from drupalauth.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
Re #5: How do you reach that? Did you change the code further? 

Original comment by [email protected] on 23 Feb 2015 at 9:22

from drupalauth.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 10, 2024
The above code worked for us.  After applying the code, when I logout from an 
SP, I get logged out from Drupal and all the other SPs. Thanks a lot for the 
code.

We also needed IDP initated logout support; i.e. whenever I logout from Drupal, 
I should get logged out from all the other SPs.  I have extended the above code 
to add support for IDP initiated logout.  I have attached a patch that contains 
the changes for drupalauth SimpleSAMLPHP module.

Instead of changing the drupalauth4ssp Drupal module, I have added the 
necessary Drupal code in a custom module.  This code is inside the second 
attachment.

Thanks,
Adnan

Original comment by [email protected] on 8 Apr 2015 at 12:18

Attachments:

from drupalauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.