Add configurable XHTTP session ID format#6251
Closed
XXcipherX wants to merge 1 commit into
Closed
Conversation
2eaebf7 to
07e05aa
Compare
07e05aa to
28764a7
Compare
|
Thanks, it worked! |
|
Thank you |
|
Thanks! That fixed the 403 error |
|
Thanks, it worked! |
|
++ Working |
|
Nice, it works |
|
Thank you it works |
Member
|
还是我重新弄一版吧 |
|
once again this is incorrect, it creates a string of FIXED LENGTH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds an optional
sessionIdFormatsetting for XHTTP client-side session ID generation.By default, XHTTP keeps the existing canonical UUID behavior. Users can opt into other opaque token shapes when a deployment environment needs session IDs to fit a different HTTP-visible format.
Motivation
XHTTP session IDs may appear in HTTP-visible locations depending on
sessionPlacement, such as path, query, header, or cookie. Some HTTP intermediaries apply strict handling or filtering to specific token shapes.This change makes the textual shape of the client-generated session ID configurable without changing XHTTP protocol semantics.
Supported values
uuidxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxrandom-hexrandom-base62aZ8pQ2nLm7VxK0sYdE4rBtExample:
{ "sessionIdFormat": "random-base62" }Compatibility
This change is backward compatible.
Existing configurations are unaffected because an unset sessionIdFormat keeps the existing runtime behavior. The server side does not require special handling because XHTTP session IDs are already handled as opaque strings.