Buckets:

AnonymousSpottedToad/human_verified_bucket / human_annotated /mappings /java /authentication_pwd__etiya-pair2_microservices.json
download
raw
4.33 kB
{
"role_mappings": [
{
"role": "Subject",
"symbol": "",
"file": "",
"lines": "",
"notes": "No in-repo client (UI/SDK/CLI) sends credentials to POST /api/v1/identity/auth/login; the caller is outside the repo. Searched all modules for .js/.ts/.html and client code.",
"status": "missing",
"nodeId": null
},
{
"role": "Enforcer",
"symbol": "login",
"file": "identityservice/src/main/java/com/etiya/identityservice/controller/AuthController.java",
"lines": "23",
"notes": "Anchor: POST /api/v1/identity/auth/login route handler; forwards LoginRequest (email, password) to AuthService.login at AuthController.java:24 and only returns a token when that call does not throw. SecurityFilterChain permits all requests (SecurityConfiguration.java:53), so the login endpoint itself is the enforcement point.",
"status": "present",
"nodeId": null
},
{
"role": "Verification manager",
"symbol": "login",
"file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java",
"lines": "24",
"notes": "Reached from Enforcer AuthController.java:24. Loads the user via userService.loadUserByUsername (line 25), calls passwordEncoder.matches (line 26) and throws RuntimeException on mismatch (line 28).",
"status": "present",
"nodeId": null
},
{
"role": "Password store",
"symbol": "findByEmailIgnoreCase",
"file": "identityservice/src/main/java/com/etiya/identityservice/repository/UserRepository.java",
"lines": "12",
"notes": "Verification manager calls userService.loadUserByUsername (AuthServiceImpl.java:25 -> UserServiceImpl.java:60), which calls this Spring Data JPA query (UserServiceImpl.java:61) returning the User entity whose password field holds the bcrypt hash (set via passwordEncoder.encode at registration, AuthServiceImpl.java:40).",
"status": "present",
"nodeId": null
},
{
"role": "Hasher",
"symbol": "BCryptPasswordEncoder",
"file": "identityservice/src/main/java/com/etiya/identityservice/core/configuration/SecurityConfiguration.java",
"lines": "24",
"notes": "Spring Security BCryptPasswordEncoder instantiated in the passwordEncoder bean (SecurityConfiguration.java:23-24) and injected into AuthServiceImpl; the single matches call at AuthServiceImpl.java:26 both hashes and compares. The duplicate bean in core BaseSecurityConfiguration.java:12 is not component-scanned by identityservice.",
"status": "external",
"nodeId": null
},
{
"role": "Pepper store",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper on the login path; only bcrypt with its per-hash salt. Grepped for pepper/secret usage in identityservice and core; the JWT SECRET_KEY in BaseJwtService is for token signing, not a pepper.",
"status": "missing",
"nodeId": null
},
{
"role": "Encrypter",
"symbol": "",
"file": "",
"lines": "",
"notes": "No encryption of the password hash on the verification path (AuthServiceImpl.login only calls bcrypt matches). No Cipher/HMAC over passwords found in the repo.",
"status": "missing",
"nodeId": null
},
{
"role": "Comparator",
"symbol": "matches",
"file": "identityservice/src/main/java/com/etiya/identityservice/service/concretes/AuthServiceImpl.java",
"lines": "26",
"notes": "Verification manager AuthServiceImpl.login calls Spring Security PasswordEncoder.matches (BCryptPasswordEncoder) with the raw and stored password at line 26; the same call also performs the hashing (Hasher). Result drives the reject at line 28.",
"status": "external",
"nodeId": null
},
{
"role": "System",
"symbol": "generateToken",
"file": "core/src/main/java/io/github/sabaurgup/security/BaseJwtService.java",
"lines": "23",
"notes": "On successful verification AuthServiceImpl.login calls baseJwtService.generateToken(user.getUsername()) (AuthServiceImpl.java:30) to issue a signed JWT returned in TokenResponse; the BaseJwtService bean is declared in SecurityConfiguration.java:28.",
"status": "present",
"nodeId": null
}
]
}

Xet Storage Details

Size:
4.33 kB
·
Xet hash:
2f680745aed06a890a6a1cc159f538c78667cc6052e281cdac361d232b2d919a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.