Skip to content

OpenID Connect Session Management 1.0 and the size limit for parameter session_state #2139

Open

Description

@bitbucket-import-issues

Originally submitted by Andrii Deinega (Andrii Deinega) on 2025-08-18

https://openid.net/specs/openid-connect-session-1_0.html introduces the session_state parameter and defines it as

JSON [RFC7159] string that represents the End-User's login state at the OP. It MUST NOT contain the space (" ") character. This value is opaque to the RP. This is REQUIRED if session management is supported.

this is also followed by this suggestion on how OPs should generate it

The generation of suitable Session State values is specified in Section 3.2, and is based on a salted cryptographic hash of Client ID, origin URL, and OP User Agent state.

which sort of implies it has the fixed size (64 characters long). However, my experience shows that some OPs in the wild make it a very very long string (my guess is they issue an encrypted JWT or something) which led to integration issues.

The suggestion is to specify some sane size limits for it.

Note that passing it as a query parameter via the front channel is limited by size constraints due its nature.


Bitbucket status: open

Bitbucket origin: issue 2183

Activity

  1. bitbucket-import-issues commented on Jun 9, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by mbj (Michael Jones) on 2025-09-25

    I plan to find the previous discussions in which we decided not to define size limits for other parameters.

  2. bitbucket-import-issues commented on Jun 9, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by mbj (Michael Jones) on 2025-09-25

    This would not be part of Session Management, which is final. It would be in an extension specification.

  3. bitbucket-import-issues commented on Jun 9, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by Frederik Krogsdal Jacobsen (Frederik Krogsdal Jacobsen) on 2025-10-02

    Prior art: FAPI specifically mentions that state might be very long as an interoperability concern to note: https://openid.net/specs/fapi-security-profile-2_0.html#section-5.3.2.2-6

  4. bitbucket-import-issues commented on Jun 9, 2026

    @bitbucket-import-issues
    Author

    Originally submitted by mbj (Michael Jones) on 2026-02-02

    Given that we haven’t been in the practice of putting size limits on parameters and this is a final specification that cannot be changed, I propose that this issue be closed on that basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: Sessionmigrated-from-bitbucketpriority: minortype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions