Logout link does not log user out.
The link works, goes to the /out.html page, but when I type into url: /home (or any other @requires_auth page) I am able to enter the page. I need the user to be asked to Log-In again.
Auth0 - Tenant Settings - Advanced - Allowed Logout URLs: (I have 2 added)
https://www.mydomain.com/out,
https://www.mydomain.com/v2/logout?returnTo=http%3A%2F%2Fwww.mydomain.com/out&client_id=CLIENT_ID
My Logout link:
id=“qsLogoutBtn” href=“/out”>Log Out<
My app.py:
@app.route(“/logout”)
def logout():
session.clear()
params = {‘returnTo’: url_for(‘out’, _external=True), ‘client_id’: AUTH0_CLIENT_ID}
return redirect(auth0.api_base_url + ‘/v2/logout?’ + urlencode(params))
@app.route(“/out”)
def out():
return render_template(“out.html”)