0

I have integrated IBM Cloud App ID service in my Python Flask web application referring this link

The login is working through Google/Facebook but I am not able to logout from the application.

Does anyone know how to logout from this application?

data_henrik
  • 16,724
  • 2
  • 28
  • 49
Rahul Modi
  • 11
  • 4

1 Answers1

0

That Python app is using Flask and its session to manage the authorization scope and tokens. You could implement a route logout that removes the stored information from session. Parts of it are already shown for invalid authorization requests in your linked sample:

if (not idTokenPayload or not accessTokenPayload):
            session[WebAppStrategy['AUTH_CONTEXT']]=None
data_henrik
  • 16,724
  • 2
  • 28
  • 49