Passing Request in StrategyVerifyCallback #280
Closed
maou-shonen
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
This depends on the strategy, the OAuth2Strategy and their based strategies all get the request, if you want to send a PR to the FormStrategy to pass the request I could merge it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to include the request in the StrategyVerifyCallback? I believe there are quite a few examples where the login verification process between enterprises references headers.
Currently, my solution involves forking the required Strategy and modifying it accordingly.
For example, in FormStrategy:
If the request is passed during the
authenticator.use
stage, there's no need to maintain a separate forked version. It's plug-and-play. Isn't this a good idea?Note 1: I know we can use Express to LoadContext, but it's obviously much more cumbersome.
Note 2: Remix middleware can also handle this, but it seems there's still quite some time before it becomes stable.
Beta Was this translation helpful? Give feedback.
All reactions