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

Force audience to incoming host when checkAudience is false #2

Closed
wants to merge 5 commits into from

Conversation

Morgul
Copy link

@Morgul Morgul commented Jul 31, 2013

When the checkAudience option is false, we need to force our audience to the incoming host, otherwise persona will fail all requests with a miss-matched audience.

Alternatively, this could be the default if checkAudience was false, and audience was undefined, but it made sense to me to depend on checkAudience alone.

This allows, for example, development on localhost, while testing with another computer browsing to the site via ip address. (I frequently test with my iPad this way).

When the `checkAudience` option is false, we need to force our audience
to the incoming host, otherwise passport will fail all requests with a
missmatched audience.
@Morgul
Copy link
Author

Morgul commented Jul 31, 2013

Also, apologies for the whitespace removal adding noise to the diff; didn't notice that till submitting the pull request; my editor does that automatically, and I didn't think about it.

@Morgul
Copy link
Author

Morgul commented Nov 3, 2015

Closing in favor of #6.

@Morgul Morgul closed this Nov 3, 2015
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.

2 participants