Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is single sign out possible now ? #119

Open
vijayvikma opened this issue Jan 16, 2021 · 3 comments
Open

Is single sign out possible now ? #119

vijayvikma opened this issue Jan 16, 2021 · 3 comments

Comments

@vijayvikma
Copy link

No description provided.

@mcejp
Copy link

mcejp commented Feb 17, 2021

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
Copy link

@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
Copy link

@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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants