phronesis / Auth0

This is an extension that adds the ability to log into your Magento application using Auth0
9 stars 6 forks source link

Implement Logout #15

Open phronesis opened 6 years ago

phronesis commented 6 years ago

When a user logs out of the Magento store, the user needs to be logged out of Auth0 as well. This will be done using the auth0 logout endpoint: https://auth0.com/docs/logout Sample user flow:

  1. User logs out of Magento store
  2. An observer is implemented for the "after logout" event in Magento. The observer checks for an active auth0 session and logs the user out using the endpoint, passing where the user needs to be redirected to as indicated in the Auth0 docs.
  3. It is important that the observer should not do anything if the just logged out user did not log in using Auth0.