Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary_without_sequence /mappings /java /authentication_pwd /netgrif_application-engine.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The repo contains only the backend (src/main, src/test); no in-repo frontend/SDK/CLI sends Basic credentials to /api/auth/login. The caller is outside the repo." | |
| }, | |
| { | |
| "role": "Enforcer", | |
| "status": "present", | |
| "symbol": "configure", | |
| "file": "src/main/java/com/netgrif/application/engine/configuration/NaeSecurityConfiguration.java", | |
| "lines": "113", | |
| "notes": "configure(HttpSecurity) in NaeSecurityConfiguration enables httpBasic() (line 116) and anyRequest().authenticated() (line 127), installing Spring's BasicAuthenticationFilter which extracts id/password and blocks the request on failure. Providers are registered via configure(AuthenticationManagerBuilder) in AbstractSecurityConfiguration.java:189." | |
| }, | |
| { | |
| "role": "Verification manager", | |
| "status": "present", | |
| "symbol": "authenticate", | |
| "file": "src/main/java/com/netgrif/application/engine/configuration/authentication/providers/basic/NetgrifBasicAuthenticationProvider.java", | |
| "lines": "34", | |
| "notes": "Reached from the Enforcer via the ProviderManager to which AbstractSecurityConfiguration.java:195 adds the netgrifBasicAuthenticationProvider bean (NetgrifBasicAuthenticationProviderLoader.java:20). It loads the user by email, calls passwordEncoder.matches and returns the authenticated token or throws BadCredentialsException. The LDAP provider is only active with nae.ldap.enabled=true (off by default)." | |
| }, | |
| { | |
| "role": "Password store", | |
| "status": "present", | |
| "symbol": "findByEmail", | |
| "file": "src/main/java/com/netgrif/application/engine/auth/domain/repositories/UserRepository.java", | |
| "lines": "24", | |
| "notes": "Called by authenticate at NetgrifBasicAuthenticationProvider.java:46; repo-declared Spring Data MongoDB derived query returning the User with its bcrypt password hash." | |
| }, | |
| { | |
| "role": "Hasher", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/com/netgrif/application/engine/configuration/authentication/providers/basic/NetgrifBasicAuthenticationProvider.java", | |
| "lines": "54", | |
| "notes": "One call to Spring Security BCryptPasswordEncoder.matches both hashes the presented password with the stored salt and compares (same call as Comparator). Encoder created in EncryptionConfiguration.java:35 and injected via setPasswordEncoder at NetgrifBasicAuthenticationProviderLoader.java:22." | |
| }, | |
| { | |
| "role": "Pepper store", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No pepper on the verification path; authenticate only uses the bcrypt hash (with its embedded salt). grep for pepper finds nothing." | |
| }, | |
| { | |
| "role": "Encrypter", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The password hash is not encrypted with a key. A jasypt StandardPBEStringEncryptor exists (EncryptionConfiguration.java:23, used by security/service/EncryptionService.java) but it encrypts data fields, not on the password verification path." | |
| }, | |
| { | |
| "role": "Comparator", | |
| "status": "external", | |
| "symbol": "matches", | |
| "file": "src/main/java/com/netgrif/application/engine/configuration/authentication/providers/basic/NetgrifBasicAuthenticationProvider.java", | |
| "lines": "54", | |
| "notes": "Called by authenticate (NetgrifBasicAuthenticationProvider.java:54); Spring Security BCryptPasswordEncoder.matches compares the recomputed hash to the stored one; same call also serves as the Hasher." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "login", | |
| "file": "src/main/java/com/netgrif/application/engine/auth/web/AuthenticationController.java", | |
| "lines": "142", | |
| "notes": "GET /api/auth/login in AuthenticationController, reached only after the BasicAuthenticationFilter configured in NaeSecurityConfiguration.java:116 authenticates the request; returns the logged-in user's profile (session X-Auth-Token established by Spring Session)." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.24 kB
- Xet hash:
- 1a3f0dde48d356805d36034046cd394a07dd040c6d0e8cb26504417cf460144f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.