Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolves issue #1241 #1242

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

Conversation

Pratham1812
Copy link
Contributor

@Pratham1812 Pratham1812 commented Feb 28, 2024

Hey I have tried fixing #1241 the project now functions with my python version 3.11.8.I have resolved the issue of deprecated dependencies. I have also removed one of the dependency cookies since it was very outdated, instead i have implemented a one liner approach for the use case of this dependency.I have also fixed the login error which several users were facing :)

Description

Related Issue

Motivation and Context

The change tries to run owtf on systems with python versions > 3.9

Reviewers

@viyatb @7a

How Has This Been Tested?

Screenshots (if appropriate):

image
image

Application running without docker with python versions 3.11.8

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other

Checklist:

  • My code follows the code style (modified PEP8) of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Copy link
Member

@viyatb viyatb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added some comments

owtf/transactions/base.py Show resolved Hide resolved
@@ -28,7 +28,7 @@ def find_by_userid_and_token(cls, session, user_id, token):
@classmethod
def add_user_login_token(cls, session, token, user_id):
"""Adds an user_login_token to the DB"""
new_token = cls(user_id=user_id, token=token.decode("ascii"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep the .decode everywhere to handle weird characters - its better to be explicit than implicit :)

owtf/transactions/base.py Outdated Show resolved Hide resolved
Copy link
Member

@viyatb viyatb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pratham1812 did you test the SimpleCookie implementation to see if it works?

owtf/api/handlers/jwtauth.py Outdated Show resolved Hide resolved
@Pratham1812
Copy link
Contributor Author

I have updated the way cookies ae handled also did the other changes. Could you please have a look? @viyatb

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.

None yet

2 participants