davidjrh / dnn.azureadprovider

The DNN Azure Active Directory Provider is an Authentication provider for DNN Platform (formerly DotNetNuke) that uses Azure Active Directory OAuth2 authentication to authenticate users.
MIT License
35 stars 21 forks source link

Destroy AzureUserToken at browser/tab close #48

Closed rodsmr closed 2 years ago

rodsmr commented 3 years ago

Hi :)

Is there a way to destroy AzureUserToken at browser/tab close?

I try to add more info and describe my problem:

  1. User go to my site and show login page
  2. Click to "Login with AzureAD" button and do a succesfull login
  3. Return to my site, navigate some page and close the tab/browser without logout
  4. Reopen the browser, go to my site and directly go to login.microsoftonline.com without pass throught my login page

I try to put som JS code on DOM ready on login skin but, with the help of network inspect, I saw automatic redirect without stop in my login page