OpenID Connect Session Management 1.0 and the size limit for parameter session_state
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 3
- Forks
- 3
- Avg merge
- 20h 14m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the referenced OpenID Connect Session Management 1.0 specification, especially the session_state definition and OPiframe section. Review the existing issue discussion and front-channel query-size constraints; done means the project has reached agreement on a sane session_state size limit and where it belongs in the specification.
Written by the indexing model from the issue text.
Assessment
- Domain
- authentication
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100