Skip to content

[16.0] [IMP] shopinvader_fastapi_auth_partner: Call _promote_anonymous_partner in dependencies #16

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

Open
wants to merge 2 commits into
base: 16.0-shop-partner-auth-fast-api
Choose a base branch
from

Conversation

paradoxxxzero
Copy link

This PR depends on shopinvader#1570

…er in dependencies

When a logged partner and anonymous partner coexist
@paradoxxxzero paradoxxxzero force-pushed the 16.0-shop-partner-auth-fast-api-promotion branch from 4787e19 to 98a5178 Compare December 12, 2024 09:56
@paradoxxxzero paradoxxxzero changed the title [IMP] shopinvader_fastapi_auth_partner: Call _promote_anonymous_partner in dependencies [16.0] [IMP] shopinvader_fastapi_auth_partner: Call _promote_anonymous_partner in dependencies Dec 12, 2024
_inherit = "fastapi.auth.service"

def _set_auth_cookie(self, auth_partner, request, response):
rv = super(AuthService, self)._set_auth_cookie(auth_partner, request, response)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rv = super(AuthService, self)._set_auth_cookie(auth_partner, request, response)
rv = super()._set_auth_cookie(auth_partner, request, response)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants