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

Problem on AWS #80

Closed
tjerabek opened this issue Nov 19, 2012 · 7 comments
Closed

Problem on AWS #80

tjerabek opened this issue Nov 19, 2012 · 7 comments

Comments

@tjerabek
Copy link

my application don't work on AWS with passport and Google strategy. This is error:

node_modules/passport-google/node_modules/passport-openid/node_modules/openid/lib/convert.js:33
if(i.charCodeAt(0) > 127)
^
TypeError: Object ��:
�9r���Ţ�17q~��q�v#sf��Z.'�����zc�?)XӲ�9��h7W}E���-�zv�ΧKH�߯���%�NE��f4�I��5̂�H;�v">]I
����"� has no method 'charCodeAt'
at Object.btwoc (/home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/lib/convert.js:33:8)
at _toBase64 (/home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:70:40)
at Object.openid.associate (/home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:637:35)
at successOrNext (/home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:844:16)
at /home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:860:5
at /home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:607:7
at /home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:485:16
at done (/home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:201:9)
at IncomingMessage. (/home/ec2-user/data/scrum/node_modules/passport-google/node_modules/passport-openid/node_modules/openid/openid.js:205:32)
at IncomingMessage.EventEmitter.emit (events.js:123:20)

Everything is ok on my local computer.

@eoinmurray
Copy link

I get the same error

@eoinmurray
Copy link

@tjerabek what version of node are you using?

@tjerabek
Copy link
Author

Last stable

@eoinmurray
Copy link

same, on micro ec2. Any ideas, fix so far?

@tjerabek
Copy link
Author

I have used Twitter auth instead. It's working well. I have no idea where is problem with Google auth.

@eoinmurray
Copy link

That is a shame, its always nice to have the trio auth, Fb, Google and Twitter. I will look into a solution and post if I find one.

@jaredhanson
Copy link
Owner

This is duplicated at jaredhanson/passport-google#4

I'm closing it here since it is specific to that strategy rather than Passport generally. As a workaround, I'd try switching to Google's OAuth 2.0 implementation, which is supported by passport-google-oauth. Google seems to be recommending that as their preferred approach for authentication..

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

No branches or pull requests

3 participants