I have a Flask app and I want to implement a logout functionality that will end the session and log out the current oidc.
Currently, my endpoint look like this:
def logout(): oidc.logout() return redirect(url_for('index'))
I understand that in order to log out from the session I need to add a GET request to this endpoint:
So I have 2 questions:
- What is the base URL?
- How I can retrieve the current ID token to pass to the endpoint?