You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenID Connect Session Management 1.0 and the size limit for parameter session_state #2139
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.
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.
Activity
bitbucket-import-issues commentedon Jun 9, 2026
I plan to find the previous discussions in which we decided not to define size limits for other parameters.
bitbucket-import-issues commentedon Jun 9, 2026
This would not be part of Session Management, which is final. It would be in an extension specification.
bitbucket-import-issues commentedon Jun 9, 2026
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
bitbucket-import-issues commentedon Jun 9, 2026
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.