mraible opened a new pull request, #323: URL: https://github.com/apache/roller/pull/323
`Register`, `Profile` and `UserEdit` give accounts that log in through OpenID Connect a random password they never type. It was 255 characters (`RandomStringUtils.randomAlphanumeric(255)`), which Spring Security 7's `BCryptPasswordEncoder` refuses with "password cannot be more than 72 bytes", so saving an OIDC user's profile, or an admin's edit of one, failed with the default `bcrypt` encryption. They now use the new `RollerPasswordEncoders.randomUnusedPassword()`: 64 alphanumeric characters from `RandomStringUtils.secure()`, so it fits every encoder and still can't be guessed. Accounts created by `RollerOidcUserService` already got a UUID and are unchanged. Found while testing #322. - `RandomUnusedPasswordTest` checks the length, that BCrypt encodes and matches it, and that the three actions use it. - `mvn test` passes (751 tests). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
