Buckets:

download
raw
3.78 kB
{
"role_mappings": [
{
"role": "Subject",
"status": "present",
"symbol": "password_grant",
"file": "tiled/client/context.py",
"lines": "1364",
"notes": "Tiled Python client: the interactive login (context.py:120-129, mode internal/password) prompts username/password and calls password_grant, which POSTs a password-grant form to /api/v1/auth/provider/{provider}/token, i.e. the traced Enforcer route."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "handle_credentials_route",
"file": "tiled/server/authentication.py",
"lines": "1131",
"notes": "Route handler registered by add_internal_routes (authentication.py:1125) for every InternalAuthenticator (wired in server/app.py:476). Reads OAuth2PasswordRequestForm, calls authenticator.authenticate(username, password) at authentication.py:1142 and raises HTTP 401 'Incorrect username or password' on failure."
},
{
"role": "Verification manager",
"status": "present",
"symbol": "authenticate",
"file": "tiled/authenticators.py",
"lines": "74",
"notes": "DictionaryAuthenticator.authenticate, reached from handle_credentials_route (authentication.py:1142) when this authenticator is configured. Looks up the stored password for the username and calls secrets.compare_digest; returns UserSessionState or None. Alternatives PAMAuthenticator.authenticate (authenticators.py:108, delegates wholly to pamela) and LDAPAuthenticator (LDAP bind) use the same Enforcer."
},
{
"role": "Password store",
"status": "present",
"symbol": "_users_to_passwords",
"file": "tiled/authenticators.py",
"lines": "71",
"notes": "Verification manager authenticate reads self._users_to_passwords.get(username) at authenticators.py:77; the field holds the users_to_passwords mapping from server config. No retrieving method exists, so the field is cited; caveat: passwords are kept in plaintext, not hashed."
},
{
"role": "Hasher",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "DictionaryAuthenticator.authenticate (authenticators.py:74) compares the submitted password directly to the plaintext stored one; no hashing on the verification path. Searched for hashlib/bcrypt/passlib in tiled/: only API-key/secret hashing (authn_database, server/authentication.py), not passwords."
},
{
"role": "Pepper store",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No pepper value is retrieved anywhere on the login path (authenticators.py:74-82, authentication.py:1131-1160)."
},
{
"role": "Encrypter",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "No encryption of a password hash with a pepper key on the login path; the password is compared in plaintext."
},
{
"role": "Comparator",
"status": "external",
"symbol": "compare_digest",
"file": "tiled/authenticators.py",
"lines": "81",
"notes": "Verification manager authenticate (authenticators.py:74) calls Python stdlib secrets.compare_digest(true_password, password) (imported at authenticators.py:6), a constant-time comparison of the plaintext stored and submitted passwords."
},
{
"role": "System",
"status": "present",
"symbol": "create_session",
"file": "tiled/server/authentication.py",
"lines": "771",
"notes": "On success handle_credentials_route calls create_session at authentication.py:1153 (then create_tokens_from_session at 1160) to persist a session and issue access/refresh tokens returned to the client."
}
]
}

Xet Storage Details

Size:
3.78 kB
·
Xet hash:
7e64c40481547338c5aad05e4735469dcd6f12e2f2f5f54218d9b25f18c42ee4

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