Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /authentication_pwd /osinn_spring-security-auth-starter.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "This is a starter library with no in-repo client, controller or UI that sends account/password to auth (OnlineUserServiceImpl.java:67); the caller is the consuming application outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "auth", | |
| "file": "src/main/java/io/github/osinn/security/service/impl/OnlineUserServiceImpl.java", | |
| "lines": "67", | |
| "notes": "Login entry point auth in OnlineUserServiceImpl (@Component, IOnlineUserService) takes AuthLoginParam (account, password), optionally checks captcha and RSA-decrypts the transport password, then calls authenticationManagerBuilder.getObject().authenticate(...) at line 102 and rethrows AuthenticationException on failure, so a token is only issued after successful verification." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "external", | |
| "symbol": "authenticate", | |
| "file": "src/main/java/io/github/osinn/security/service/impl/OnlineUserServiceImpl.java", | |
| "lines": "102", | |
| "notes": "Reached from Enforcer auth (OnlineUserServiceImpl.java:102). Spring Security's AuthenticationManager (ProviderManager -> DaoAuthenticationProvider.authenticate, auto-configured from the UserDetailsService and PasswordEncoder beans) fetches the user via loadUserByUsername and checks the password with PasswordEncoder.matches." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "loadUserByUsername", | |
| "file": "src/main/java/io/github/osinn/security/service/impl/UserDetailsServiceImpl.java", | |
| "lines": "33", | |
| "notes": "Called by DaoAuthenticationProvider (from authenticate at OnlineUserServiceImpl.java:102); UserDetailsServiceImpl.loadUserByUsername -> findUser (line 41) delegates to ISecurityService.loadUserByUsername (ISecurityService.java:51) and returns AuthUserInfo with the stored password hash, throwing UsernameNotFoundException if absent. Caveat: the actual DB query is implemented by the consuming app's ISecurityService." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/io/github/osinn/security/utils/PasswordEncoderUtils.java", | |
| "lines": "19", | |
| "notes": "Invoked by DaoAuthenticationProvider inside authenticate (OnlineUserServiceImpl.java:102); the PasswordEncoder bean (SecurityAutoConfigure.java:58) defaults to idForEncode=\"bcrypt\" (SecurityProperties.java:147) -> new BCryptPasswordEncoder() at PasswordEncoderUtils.java:19, whose matches both hashes and compares (same call as Comparator). Alternatives pbkdf2 and in-repo Md5Sha512PasswordEncoder.matches (Md5Sha512PasswordEncoder.java:20) apply only when configured." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the login path; searched OnlineUserServiceImpl, PasswordEncoderUtils, SecurityProperties, CryptoUtils. rsaPrivateKey (used at OnlineUserServiceImpl.java:88) only decrypts the transport-encrypted password and desPassword only encrypts session tokens; neither is a pepper. bcrypt salt is not a pepper." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The password hash is never encrypted with a pepper key. CryptoUtils.rsaDecrypt (OnlineUserServiceImpl.java:88) decrypts the incoming password and CryptoUtils.desEncrypt (OnlineUserServiceImpl.java:339) encrypts the issued token; both are lookalikes off this role." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/io/github/osinn/security/utils/PasswordEncoderUtils.java", | |
| "lines": "19", | |
| "notes": "Same single call as Hasher: BCryptPasswordEncoder.matches (configured at PasswordEncoderUtils.java:19, bean SecurityAutoConfigure.java:58) is invoked by Spring's DaoAuthenticationProvider during authenticate (OnlineUserServiceImpl.java:102) and both hashes the raw password with the stored salt and compares it to the stored hash." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "generationToken", | |
| "file": "src/main/java/io/github/osinn/security/service/impl/OnlineUserServiceImpl.java", | |
| "lines": "277", | |
| "notes": "Success branch of Enforcer auth calls this.generationToken(authUserInfo, request) at OnlineUserServiceImpl.java:108; it creates the session token, stores the online user in Redis (tokenSave/saveLoginInfo) and enforces single-login. Starter has no business controller of its own." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.81 kB
- Xet hash:
- d560decf2fc2078b0e61c45c456bbec6bdbc8a29078233e9685e037feea611fa
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.