PHP Classes

What is the correct way to logout using the package?

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  Learn with a PHP OAut...  >  All threads  >  What is the correct way to logout...  >  (Un) Subscribe thread alerts  
Subject:What is the correct way to logout...
Summary:Need to be able to logout, so that I can login with a different
Messages:13
Author:Martin Kirk
Date:2017-03-15 11:45:06
 
  1 - 10   11 - 13  

  11. Re: What is the correct way to logout...   Reply   Report abuse  
Picture of Martin Kirk Martin Kirk - 2017-03-24 20:19:14 - In reply to message 10 from Martin Kirk
I have verified that the issue is that the identity server cookies are not being sent with the request to /oidc/logout.

If if invoke the /oidc/logout endpoint directly in the browser, I can see the cookies being sent, and the logout proceedss correctly and the cookies are destroyed.

Since my app is running on a different domain (e.g. app.abc.org) to the id server (e.g. id.abc.org), I need to ensure the cookies are passed with the logout request.

I realise that this is really an http package question (and I can ask it in that forum if you prefer), but do I need to do anything in the script to make this happen, or should they be included automatically?


  12. Re: What is the correct way to logout...   Reply   Report abuse  
Picture of Martin Kirk Martin Kirk - 2017-03-27 09:27:45 - In reply to message 11 from Martin Kirk
Just to close out this thread. I have finally received confirmation from the WSO2 suport folks that they currently only support browser-based logout, so any attempts to do it from within the client lirary are doomed to fail. This may change in the future, but for now an explicit browser-based redirection is the only solution.

Many thanks for your help, and particularly for adding the token revocation.

  13. Re: What is the correct way to logout...   Reply   Report abuse  
Picture of Austin Bange Austin Bange - 2017-04-17 16:04:51 - In reply to message 4 from Manuel Lemos
To better round out this thread, can you explain how to log a user out of the server as well? ResetAccessToken works just fine to 'unauthorize' a user but I've found for my application that I need to log the user out of the server as well. I'm working with 37signals (Basecamp 3 to be precise). Any insight would be appreciated, thank you!

 
  1 - 10   11 - 13