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

Duplicate call _verify when using @scope #171

Open
phamconganh opened this issue Aug 8, 2019 · 1 comment
Open

Duplicate call _verify when using @scope #171

phamconganh opened this issue Aug 8, 2019 · 1 comment

Comments

@phamconganh
Copy link

phamconganh commented Aug 8, 2019

in decorator scope, decorated_function :
_, instance = await _do_protection(*args, **protect_kwargs) -> _check_authentication -> _verify, and then when user_scopes = instance.auth.extract_scopes(request) -> extract_payload -> _verify

@ahopkins
Copy link
Owner

You are correct. Perhaps there is some optimization to be had here. I would welcome a PR if you would be so kind.

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

No branches or pull requests

2 participants