You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When auto_provision is enabled for a plugin OAuth auth provider (e.g. Discord), first-time OAuth sign-in fails because Silo generates a plugin-only password longer than bcrypt allows.
Steps to reproduce
Install and enable an OAuth auth plugin (Discord works).
Enable auth binding with auto_provision: true. (not visible in the UI yet so a PUT request to the API handles that)
Sign in via OAuth with a user that does not yet exist in Silo.
Expected behavior
Silo auto-creates the user account and completes login.
Actual behavior
Login fails during auto-provisioning. Server log shows:
In internal/auth/plugin_provider.go, randomPluginOnlyPassword() currently generates:
"plugin-only-" + hex.EncodeToString(32 random bytes)
That yields a 76-character password (12 + 64), which exceeds bcrypt’s 72-byte max input length.
Suggested fix
Ensure generated plugin-only passwords are <=72 bytes before hashing, for example by reducing random bytes from 32 to 24 (12 + 48 = 60 chars), or by enforcing a hard cap.
Impact
This blocks onboarding for new OAuth users whenever plugin auth auto-provision is enabled.
This has been addressed in #33, which has now been merged.
The fix keeps generated plugin-only auto-provision passwords below bcrypt's 72-byte input limit, so first-time OAuth sign-in with auto_provision enabled can create the Silo user account successfully.
Activity
Quick104 commentedon May 31, 2026
This has been addressed in #33, which has now been merged.
The fix keeps generated plugin-only auto-provision passwords below bcrypt's 72-byte input limit, so first-time OAuth sign-in with
auto_provisionenabled can create the Silo user account successfully.