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

OAuth test utility method #183

Closed
joegasewicz opened this issue Jan 26, 2021 · 0 comments · Fixed by #184
Closed

OAuth test utility method #183

joegasewicz opened this issue Jan 26, 2021 · 0 comments · Fixed by #184
Assignees
Labels
enhancement New feature or request

Comments

@joegasewicz
Copy link
Owner

joegasewicz commented Jan 26, 2021

Provide a utility method for testing & mocking OAuth headers e.g:

# Example of a typical pytest with Flask (including the new test util prototype method):

headers = jwt_routes.google.create_test_headers(email="user_one@gmail.com")
rv = client.get(f"/blogs", headers=headers)
@joegasewicz joegasewicz added the enhancement New feature or request label Jan 26, 2021
@joegasewicz joegasewicz self-assigned this Jan 26, 2021
joegasewicz added a commit that referenced this issue Jan 26, 2021
@joegasewicz joegasewicz linked a pull request Jan 26, 2021 that will close this issue
joegasewicz added a commit that referenced this issue Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant