[IdP] Username max length mismatch on SamlMessage_Log entity

There is a simple mismatch between the username max length from Users and SamlMessage_Log entities. If you have a username greater than 50 characters the IdP will not be able to insert the log and the whole login will fail with no logs or warnings. To prevent this I propose to increase the max length of the SamlMessage_Log's username column to 250.

Hi Joao,

Its a valid point, in meanwhile if you need to solve the problem(if you didn't already), you can increase the size of this attribute and use it

Best regards,

Carlos Lessa

Hi Carlos,

Thank you for your response. I did that.

My only concern is if someone thinks is a good idea to get the forge version for the IdP.

Best regards,



I realize this thread is over 7 months old, but came across it because we faced issues with the Idp application and users with long email addresses.

I agree with João Paulo, it would be great if the Forge version could be updated to include this fix.

Note: The above suggestion increases the length to 250 characters, but I believe 254 would be more correct as that is the largest supported length as specified by RFC 2821.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.