Skip to content

resolved security issue alerted by Dependabot - #18

Merged
AkibDa merged 1 commit into
GreenPlateByCodeNewbies:mainfrom
AkibDa:main
Jan 8, 2026
Merged

AkibDa merged 1 commit into
GreenPlateByCodeNewbies:mainfrom
AkibDa:main

Conversation

@AkibDa

@AkibDa AkibDa commented Jan 8, 2026

Copy link
Copy Markdown
Member

No description provided.

Comment thread app/auth.py
@@ -1,10 +1,13 @@
# app/auth.py

import os, requests

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Multiple imports on one line (os, requests) Warning

Multiple imports on one line (os, requests)
Comment thread app/auth.py
idToken=response_data["idToken"],
)
else:
error_msg = response_data.get("error", {}).get("message", "Login failed")

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Line too long (113/100) Warning

Line too long (113/100)
Comment thread app/auth.py Outdated

Check warning

Code scanning / Pylintpython3 (reported by Codacy)

Unnecessary "else" after "return" Warning

Unnecessary "else" after "return"
Comment thread app/auth.py
idToken=response_data["idToken"],
)
else:
error_msg = response_data.get("error", {}).get("message", "Login failed")

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py
)
else:
error_msg = response_data.get("error", {}).get("message", "Login failed")
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py
return _create_response(status.HTTP_401_UNAUTHORIZED, str(e))
return _create_response(status.HTTP_500_INTERNAL_SERVER_ERROR, str(e))

async def verify_staff_access(token: str):

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py Outdated

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py Outdated

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py Outdated

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Bad indentation. Found 6 spaces, expected 12 Note

Bad indentation. Found 6 spaces, expected 12
Comment thread app/auth.py Outdated

Check notice

Code scanning / Pylintpython3 (reported by Codacy)

Bad indentation. Found 6 spaces, expected 12 Note

Bad indentation. Found 6 spaces, expected 12
Comment thread app/auth.py
@@ -1,10 +1,13 @@
# app/auth.py

import os, requests

Check warning

Code scanning / Prospector (reported by Codacy)

Multiple imports on one line (os, requests) (multiple-imports) Warning

Multiple imports on one line (os, requests) (multiple-imports)
Comment thread app/auth.py
@@ -1,10 +1,13 @@
# app/auth.py

import os, requests

Check warning

Code scanning / Prospector (reported by Codacy)

Unable to import 'requests' (import-error) Warning

Unable to import 'requests' (import-error)
Comment thread app/auth.py
else:
error_msg = response_data.get("error", {}).get("message", "Login failed")
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

Check warning

Code scanning / Prospector (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 (bad-indentation) Warning

Bad indentation. Found 4 spaces, expected 8 (bad-indentation)
Comment thread app/auth.py
error_msg = response_data.get("error", {}).get("message", "Login failed")
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

except Exception as e:

Check warning

Code scanning / Prospector (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 (bad-indentation) Warning

Bad indentation. Found 4 spaces, expected 8 (bad-indentation)
Comment thread app/auth.py
return _create_response(status.HTTP_500_INTERNAL_SERVER_ERROR, str(e))

async def verify_staff_access(token: str):
try:

Check warning

Code scanning / Prospector (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 (bad-indentation) Warning

Bad indentation. Found 4 spaces, expected 8 (bad-indentation)
Comment thread app/auth.py Outdated

Check warning

Code scanning / Prospector (reported by Codacy)

Unnecessary "else" after "return" (no-else-return) Warning

Unnecessary "else" after "return" (no-else-return)
Comment thread app/auth.py Outdated

Check warning

Code scanning / Prospector (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 (bad-indentation) Warning

Bad indentation. Found 4 spaces, expected 8 (bad-indentation)
Comment thread app/auth.py Outdated

Check warning

Code scanning / Prospector (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 (bad-indentation) Warning

Bad indentation. Found 4 spaces, expected 8 (bad-indentation)
Comment thread app/auth.py Outdated

Check warning

Code scanning / Prospector (reported by Codacy)

Bad indentation. Found 6 spaces, expected 12 (bad-indentation) Warning

Bad indentation. Found 6 spaces, expected 12 (bad-indentation)
Comment thread app/auth.py Outdated

Check warning

Code scanning / Prospector (reported by Codacy)

Bad indentation. Found 6 spaces, expected 12 (bad-indentation) Warning

Bad indentation. Found 6 spaces, expected 12 (bad-indentation)
Comment thread app/auth.py
@@ -1,10 +1,13 @@
# app/auth.py

import os, requests

Check warning

Code scanning / Pylint (reported by Codacy)

Multiple imports on one line (os, requests) Warning

Multiple imports on one line (os, requests)
Comment thread app/auth.py
else:
error_msg = response_data.get("error", {}).get("message", "Login failed")
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation (add 2 spaces). Warning

Wrong hanging indentation (add 2 spaces).
Comment thread app/auth.py
else:
error_msg = response_data.get("error", {}).get("message", "Login failed")
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

Check warning

Code scanning / Pylint (reported by Codacy)

Line too long (113/100) Warning

Line too long (113/100)
Comment thread app/auth.py Outdated

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation (add 2 spaces). Warning

Wrong hanging indentation (add 2 spaces).
Comment thread app/auth.py
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

except Exception as e:
return _create_response(status.HTTP_401_UNAUTHORIZED, str(e))

Check warning

Code scanning / Pylint (reported by Codacy)

Wrong hanging indentation (add 2 spaces). Warning

Wrong hanging indentation (add 2 spaces).
Comment thread app/auth.py Outdated

Check notice

Code scanning / Pylint (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py Outdated

Check notice

Code scanning / Pylint (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py
return _create_response(status.HTTP_500_INTERNAL_SERVER_ERROR, str(e))

async def verify_staff_access(token: str):
try:

Check notice

Code scanning / Pylint (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py
error_msg = response_data.get("error", {}).get("message", "Login failed")
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

except Exception as e:

Check notice

Code scanning / Pylint (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
Comment thread app/auth.py
else:
error_msg = response_data.get("error", {}).get("message", "Login failed")
return _create_response(status.HTTP_401_UNAUTHORIZED, error_msg)

Check notice

Code scanning / Pylint (reported by Codacy)

Bad indentation. Found 4 spaces, expected 8 Note

Bad indentation. Found 4 spaces, expected 8
@AkibDa
AkibDa merged commit a61b7b2 into GreenPlateByCodeNewbies:main Jan 8, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants