<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000AH7MM6CQNOkta Classic EngineSingle Sign-OnAnswered2024-10-21T15:05:34.000Z2024-10-19T19:11:29.000Z2024-10-21T15:05:34.000Z
Getting 400 when attempting to use single sign out through Flask OIDC

Hey all,

I'm trying to configure SLO in my Flask app using OIDC.

 

 

I tried this:

 

@app.route("/logout1")

@oidc.require_login

def logout():

*oidc.logout()

logout_request = f"https://dev-XXXXXX.okta.com/oauth2/v1/logout?id_token_hint={oidc.get_access_token()}"

print(logout_request)

return redirect(logout_request)

and have also tried shoving the default prefix in the URL but it didnt help.

I always get 400 Bad Request, was anyone able to get it to work?

 


This question is closed.
Loading
Getting 400 when attempting to use single sign out through Flask OIDC