Skip to content

Read strategy name from request parameter #567

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 1 commit into
base: master
Choose a base branch
from

Conversation

jorrit
Copy link

@jorrit jorrit commented Apr 27, 2017

This adds the option nameFromParam to the authenticate method.
Set this to a parameter name that is set by the application to dynamically configure the strategy to use.

Example:

app.get('/login/:name(facebook|google)/callback',
  passport.authenticate(null, { nameFromParam: 'name' })

This adds the option `nameFromParam` to the authenticate method.
Set this to a parameter name that is set by the application to
dynamically configure the strategy to use.

Example:

app.get('/login/:name(facebook|google)/callback',
  passport.authenticate(null, { nameFromParam: 'name' })
@coveralls
Copy link

coveralls commented Apr 27, 2017

Coverage Status

Coverage increased (+0.004%) to 99.398% when pulling 95c6048 on jorrit:namefromrequest into 8de1c66 on jaredhanson:master.

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

Successfully merging this pull request may close these issues.

None yet

2 participants