Problem description
Automatic user creation may create several users with the same username.
Steps to reproduce the problem
- Enable automatic user creation
- Issue two valid SSO authentication requests at the same time (down to couple milliseconds probably)
- Two users with the same username get created
- Authentication fails with Shiro exceptions saying "There was more than one matching user for username XXXXX. This should never happen.";
- See two users in user management UI with the same username
Environment
- Graylog Version: 2.1.x
- Plugin Version: 1.0.2
I am afraid this issue is very hard to reproduce reliably, because the timing of the couple requests has to be very exact. (Both requests probably must pass the user load test at the realm logic...)