Comments (7)
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.
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.
"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.
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.
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.
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.
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)
- white screen after login HOT 4
- PHP Notices and bug report HOT 1
- Write login events to
- Call to undefined function entity_load HOT 2
- Add single log-out integration HOT 9
- User fields of type "List (text)" are not passed through authentication. Patch attached. HOT 2
- Support using user fields multiple times for different SAML attributes
- There is a serious security issue with the Drupal integration in simplesamlphp HOT 2
- The Drupal Module "drupalauth4ssp" does not work with Drupal 6 (user hooks not triggered)
- Support multi-value fields HOT 2
- baseurlpath not handled correctly by Drupal module
- Asserted as another user! HOT 2
- Drupalauth module doesn't redirect when user is already logged in HOT 1
- SLO Issue with IdP
- Logout redirect
- Drupal simplesaml Login Problem HOT 11
- drupal Federated Log In
- Cannot pass language from SP (fix included)
- Conflict between simplesamlphp_auth and drupalauth4ssp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupalauth.