Flask OIDC SLO returns 400

Hey everyone,
Im trying to configure SLO in my flask OIDC app so that whenever a user logs out in my app, Okta gets logged out too

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

I also tried
https://dev-XXXXXX.okta.com/oauth2/default/v1/logout?id_token_hint={oidc.get_access_token()}"

but I get 400 bad request any idea why?
Thx!

  1. make sure the request path matches the authorization server that issued the token.
  2. send the ID Token as the id_token_hint value, NOT the Access Token

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.