Closed (fixed)
Project:
OpenID Connect / OAuth client
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2020 at 13:37 UTC
Updated:
31 Mar 2021 at 03:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
vladimirausPatch added.
Comment #4
jcnventuraA lot of this patch is a duplicate of #3187322: In retrieveTokens, obtain request_options from a protected function. Can you please comment and review on that section of the patch in that issue, please?
Please create a new patch just for the new client_secret length.
Comment #5
vladimirausThanks for the review @jcnventura. Reverted back both in PR and with patch.
Comment #6
jcnventuraThanks for this.. Where does the 5096 number come from? It seems to be 4K + 1000, and I don't understand why.
Comment #7
vladimirausTeam reported it was enough to store private key.
I would assume it was 4K + extra comments which private key usually comes with.
Comment #8
jcnventuraI'd assume that a client secret is converted using a process like base64 which converts 3 bytes of data into 4 characters (=bytes).
So, a 1024 character field (i.e. 8192 bits) can hold a 6144-bit key. A 5096 character field can hold a 30576-bit key...
I concede that 1024 is somewhat small for the case of a 8192 or even a crazy 16384-bit secret.. But even the crazy 16384-bit secret would only need 2731 characters.
This to say that without a realistic reason to change the value, I'll keep it as is for the time being.
Comment #9
vladimirausIn my situation I need to cater for JSON Web Token (JWT) length of 4096 + comments.
There is no maximum length defined in the RFC7519 (https://tools.ietf.org/html/rfc7519) or other RFCs related to JWS or JWE. If you use the JSON Serialized format or JSON Flattened Serialized format, there is no limitation and there is no reason to define a limitation.
So, do you want to convert it to text area?
Comment #12
jcnventuraYes, a textarea makes a lot more sense.
Comment #13
vladimirausThanks @jcnventura