Skip to content

get_current_user works from fastapi#11815

Closed
RayBB wants to merge 1 commit intomasterfrom
get_current_user-fastapi
Closed

get_current_user works from fastapi#11815
RayBB wants to merge 1 commit intomasterfrom
get_current_user-fastapi

Conversation

@RayBB
Copy link
Collaborator

@RayBB RayBB commented Feb 4, 2026

Blocked by: internetarchive/infogami#273

Before this PR, if you called get_current_user from fastapi it would return None because it didn't have the cookie set when site was created. Now, when we create site the cookie is set correctly and we updated get_current_user to use the context variable instead of web.py context.

This is a necessary refactor before we start using endpoints that expect to interact with the User model.

Note: when we start using this in fastapi land we will have to rework how the auth dependencies are setup to work with this.

Technical

Testing

Screenshot

Stakeholders

@RayBB
Copy link
Collaborator Author

RayBB commented Feb 5, 2026

Closing in favor of #11816 which is on top of this and actually using it for simple migration!

@RayBB RayBB closed this Feb 5, 2026
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