Skip to content

Don't prompt for anonymous users we won't log out #1275

@tonial

Description

@tonial

Is your feature request related to a problem? Please describe.

This happens when the OP tokens and session have shorter lifespan than the RP session.
The RP may ask to logout a user who's tokens ans sessions are all expired with a call on the logout endpoint with id_token_hint parameter.

In this case :

Is it really useful to force a prompt in this case ?

Describe the solution you'd like

Given the small refactor from #1274 introducing must_prompt() method, I would add in this method a check on the token_user's token expire dates :
If we must prompt but

  • there's a token_user
  • and the request user is anonymous
  • and all the token_user's tokens are expired

-> Then don't prompt

This feature would off course be behind a setting since it's not in the OIDC RP-initiated logout specs.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions