Open obrienmd opened 1 year ago
Hi there,
I am unable to reproduce this issue, the error message looks valid though. It has been escalated for further investigation. If you have more information that can help us, please add it below.
Thanks!
Are you able to determine the size of externalId in your SsoUser table in your repro case?
Yes, the size is Varchar(50), but I didn't encounter the error when following your steps. Anyway, the Bitwarden Engineering team will check this report further.
Thanks much! Perhaps your test SSO provider uses a shorter ID than Authentik?
On Mon, May 1, 2023, 7:13 PM sso-bitwarden @.***> wrote:
Yes, the size is Varchar(50), but I didn't encounter the error when following your steps. Anyway, the Bitwarden Engineering team will check this report further.
— Reply to this email directly, view it on GitHub https://github.com/bitwarden/server/issues/2891#issuecomment-1530773072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC2L56U7GSJNDFFUGRRBCTXEBUVZANCNFSM6AAAAAAXOQSD5I . You are receiving this because you authored the thread.Message ID: @.***>
I tested using Okta. Yes, the ExternalID was pretty short. How long the ExternalID for Authentik?
64 chars
I am removing the unified label as the unified supported databases match the column length of our MS SQL database but I will escalate internally as to why this one is so much shorter than other ExternalId
columns we have.
Welp quick discussion 😄 We are going to bump the column length. I'll put this on my backlog and update here when the work is merged.
Thanks!
Steps To Reproduce
As admin:
As user:
Expected Result
Invite is accepted and user onboarding flow continues as expected.
Actual Result
User sees error message, user state remains "Invited".
Error message in SSO logs:
Screenshots or Videos
No response
Additional Context
When a user is synchronized via SCIM, their external system ID is inserted in the field "ExternalId" in "OrganizationUser" table - which has a varchar(300) type.
When that same user tries to login via SSO for the virst time, the same system ID (in this case) is inserted in the field "ExternalId" in the "SSOUser" table - which has a varchar(50) type.
Can the width of SsoUser.ExternalId be increased to match OrganizationUser.ExternalId?
Githash Version
09f86f23-dirty (from self-hosted:dev test)
Environment Details
OS: Docker host is Ubuntu 22.04 Environment: Docker self-hosted:beta and :dev Hardware: VM on Epyc 7402 ~64GB allocated mem ~1TB allocated NVMe
Database Image
postgres:15
Issue-Link
https://github.com/bitwarden/server/issues/2480
Issue Tracking Info