puiterwijk / flask-oidc

OpenID Connect support for Flask
BSD 2-Clause "Simplified" License
154 stars 217 forks source link

Is single sign out possible now ? #119

Open vijayvikma opened 3 years ago

mcejp commented 3 years ago

Do you mean OpenID Connect Back-Channel Logout?

Searching the codebase for backchannel_logout_uri yields no results, but I wonder if someone implemented it in a fork.

billsteve commented 2 years ago

@app.route('/logout') def logout(): refresh_token = oidc.get_refresh_token() oidc.logout() payload = { "client_id": oidc.client_secrets.get("client_id"), "refresh_token": refresh_token, "client_secret": app.config.get("SECRET_KEY") } res = requests.post(oidc.client_secrets.get("logout_uri"), data=payload, verify=True) msg = "error!" if res.status_code < 300: msg = "success!" return msg

mukul9193 commented 10 months ago

@billsteve when the logout url will hit at that time the code will work.here is no option of single sign out. when the user session is expired the superset user is auto logout . it possible ?