Skip to content

Use logoutRequest instead of logout #69

Open

Description

@RubenVerborgh

Activity

  1. kjetilk commented on Oct 2, 2018

    @kjetilk
  2. RubenVerborgh commented on Oct 2, 2018

    @RubenVerborgh
    Author
  3. kjetilk commented on Oct 3, 2018

    @kjetilk
  4. RubenVerborgh commented on Oct 6, 2018

    @RubenVerborgh
    ContributorAuthor

    @dmitrizagidulin What parameters should I call logoutRequest with? I currently just get /logout back; no OIDC parameters in there.

  5. dmitrizagidulin commented on Oct 6, 2018

    @dmitrizagidulin
    Contributor

    Excellent question. So, the logoutRequest docstring goes into detail on each parameter, but I'll summarize:

    • id_token_hint (required for our workflow) - this is the serialized ID Token from the session object. It serves to authenticate the user to the logout endpoint, etc.
    • post_logout_redirect_uri (optional but useful) - the url that the user gets redirected to after logout. Must be pre-registered btw (during the time of client dynamic registration).
    • state (highly optional, depends on the app) - Opaque value used by the RP to maintain state between the logout request and the callback to the endpoint specified by the post_logout_redirect_uri query parameter.

    Do those make sense?

  6. RubenVerborgh commented on Oct 6, 2018

    @RubenVerborgh
    ContributorAuthor

    @dmitrizagidulin But where do I get id_token_hint from?

  7. dmitrizagidulin commented on Oct 6, 2018

    @dmitrizagidulin
    Contributor

    It’s just the ‘id_token’ from session

  8. RubenVerborgh commented on Oct 6, 2018

    @RubenVerborgh
    ContributorAuthor

    Ok let me try that, thanks!

  9. added a commit that references this issue on Oct 6, 2018
    7fb5457
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions