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

[legacy-framework] Add ability to access req and res objects in blitz passport implementation #2576

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

doncicuto
Copy link

Closes: blitz-js/legacy-framework#278

What are the changes and their implications?

Request and response objects are now available when using a callback for passportAuth adapter. Using the request object we can have access to the query and its parameters to customize our passport strategies (e.g., invitation codes, referal codes).

A test hasn't been provided as no previous test is available for passport-adapter. I'd try to think how to implement one in a different issue.

Bug Checklist

  • Integration test added (see test docs if needed)

Feature Checklist

@flybayer
Copy link
Member

Thank you @doncicuto!! Looks good. I'll wait a bit to merge until we are ready to release a breaking change

@flybayer flybayer changed the title add ability to access req and res objects in blitz passport implementation Add ability to access req and res objects in blitz passport implementation Jul 29, 2021
@flybayer flybayer merged commit 1d9948c into blitz-js:canary Jul 29, 2021
@blitzjs-bot
Copy link
Contributor

Added @doncicuto contributions for code

@andresgutgon
Copy link

Just what I wanted!

@andresgutgon
Copy link

@flybayer Do you know when this will go into stable release? I'm trying to use canary but is not working :/

❯ blitz dev
[MODULE_NOT_FOUND] Error Plugin: @blitzjs/cli: Cannot find module

@flybayer
Copy link
Member

@andresgutgon
Copy link

Thanks! Awesome 💪

@dillondotzip dillondotzip changed the title Add ability to access req and res objects in blitz passport implementation [legacy-framework] Add ability to access req and res objects in blitz passport implementation Jul 7, 2022
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.

Support req and res within Blitz Passport strategies
4 participants