Skip to content

fix(socketio): fallback for when socket.handshake.address is not provided #369

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

Merged
merged 1 commit into from
Jul 21, 2014

Conversation

meeDamian
Copy link
Contributor

On some servers (ex. heroku), property socket.handshake.address is null.

This fix, adds fallback to the DOMAIN set in server/config/_local.env.js.

Also:

  • eliminates need to paste DOMAIN for each passport Strategy, and
  • fixes bug where authenticating on localhost would result in an external redirect.

@JaKXz JaKXz added the bug label Jul 18, 2014
@DaftMonk
Copy link
Member

Could you update the commit message scope? Unfortunately server:socketio can't be parsed by grunt-conventional-changelog, so please change it to server or socketio

Thanks!

@meeDamian
Copy link
Contributor Author

Fixed; server:socketio changed to socketio

@meeDamian meeDamian changed the title fix(server:socket.io): fallback for when socket.handshake.address is not provided fix(socket.io): fallback for when socket.handshake.address is not provided Jul 19, 2014
@meeDamian meeDamian changed the title fix(socket.io): fallback for when socket.handshake.address is not provided fix(socketio): fallback for when socket.handshake.address is not provided Jul 19, 2014
DaftMonk added a commit that referenced this pull request Jul 21, 2014
fix(socketio): fallback for when `socket.handshake.address` is not provided
@DaftMonk DaftMonk merged commit f631b16 into angular-fullstack:master Jul 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants