Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Key value storage logic and auth#61

Closed
haffi96 wants to merge 1 commit intobackwardspy:masterfrom
haffi96:key-value-storage
Closed

Key value storage logic and auth#61
haffi96 wants to merge 1 commit intobackwardspy:masterfrom
haffi96:key-value-storage

Conversation

@haffi96
Copy link
Copy Markdown
Contributor

@haffi96 haffi96 commented Nov 4, 2022

Initial draft for #53

Comment on lines +108 to +109
if "authorized" in argument:
raise exceptions.Unauthorized
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This feels kinda hacky 😕

"""
Handle connections to supported k-v storage databases
"""
import pickledb
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Im wondering whether to just use redis by default and make it a requirement for this? 🤔 Especially since it will have an api for expiring the key-values out of the box

lockfile_path: Path = Path("/tmp/.api-reflector.lock")

# Auth session expiry (minutes)
session_timeout: int | None = None
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should probably rename this to auth_timeout

@backwardspy
Copy link
Copy Markdown
Owner

i continued this work in #74 based on your ideas here, and co-authored you on it. i'll close this PR in favour of that one.

thanks for your work on this!

@backwardspy backwardspy closed this Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants