Skip to content

fix: add optional exp claim to back-channel logout token#4073

Open
ktsu2i wants to merge 1 commit intoory:masterfrom
ktsu2i:feature/logout-token-exp
Open

fix: add optional exp claim to back-channel logout token#4073
ktsu2i wants to merge 1 commit intoory:masterfrom
ktsu2i:feature/logout-token-exp

Conversation

@ktsu2i
Copy link

@ktsu2i ktsu2i commented Mar 1, 2026

The OpenID Connect Back-Channel Logout 1.0 specification requires the exp claim in logout tokens, but Hydra currently omits it.

This adds a new ttl.logout_token configuration option. When set (e.g. 2m), the exp claim is included in the logout token.

When unset or 0, the current behavior is preserved for backward compatibility.

Related issue(s)

#4035

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    security@ory.com) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

@ktsu2i ktsu2i marked this pull request as ready for review March 1, 2026 08:19
@ktsu2i ktsu2i requested review from a team and aeneasr as code owners March 1, 2026 08:19
@ktsu2i
Copy link
Author

ktsu2i commented Mar 1, 2026

Hi Hydra team ( @aeneasr ),

There's two CI failures, but I’d appreciate it if you could take a look at this PR when you get a chance.
I’d love to get your thoughts on whether the overall approach makes sense.

Thanks!

@Moses-main
Copy link

Hi team,

I'll add the optional exp claim to back-channel logout token. I have experience with:

  • OAuth/OIDC
  • Go
  • Security tokens

My approach:

  1. Understand the token structure
  2. Add exp claim support
  3. Test the implementation

Please assign!

@ktsu2i ktsu2i force-pushed the feature/logout-token-exp branch from cff6a79 to 76913b0 Compare March 4, 2026 11:15
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

Successfully merging this pull request may close these issues.

2 participants