Comments (11)
My understanding was
a) We can proxy requests through Squid at the OS level
b) We'll try to add proxy support as a possible load testing strategy, but we have other, more promising routes.
from persona-yahoo-bridge.
@fetep, care to weigh in? It was my understanding that we can't do this at the OS / VM level?
callahad: Okay, it looks like this is going to require patching node-openid and node-oauth. Do you know if there's any way to alternatively do this at the VM level?
petef: there's not
from persona-yahoo-bridge.
Yeah, this should really happen at the code level. We'd have to switch to having a transparent proxy and do a bunch of fancy and hard to debug network tricks to make it work, and I'd prefer not to do that in production.
from persona-yahoo-bridge.
@ozten, I think we discussed writing a local proxy that we could point the code at for mocking the services we talk to, but either way, the code needs to support talking through a proxy.
from persona-yahoo-bridge.
Plan for OpenID based services.
- Fork node-openid
- Add proxy support to 0.2.x version of node-openid
- Fork passport-google and passport-yahoo
- Point them to our fork of node-openid
- Work on upstreaming these changes
1 is at https://github.com/ozten/node-openid
from persona-yahoo-bridge.
Filed a node-oauth issue to capture the same request upstream.
Next steps for passport-windowslive:
- Fork node-oauth
- Add proxy support to 0.9.x version of node-oauth
- Fork passport-windowslive and passport-oauth
- Point it to our fork of node-oauth
- Work on upstreaming these changes
from persona-yahoo-bridge.
Okay, I think this is fixed. Of course some of the steps documented here still need to happen to get us back on upstream, but closing this bug to make sure @fetep and @callahad are good to go.
Please re-open and comment if there are any issues.
from persona-yahoo-bridge.
Working with @havard I'm changing the env variables to:
export HTTP_PROXY_HOST=localhost
export HTTP_PROXY_HOST=8080
export HTTPS_PROXY_HOST=localhost
export HTTPS_PROXY_HOST=8443
No update from node-oauth people yet.
from persona-yahoo-bridge.
@fetep - Will Squid, etc rewrite the request path before proxying traffic?
We should test this in Stage soon.
Issue - In the current code I update path to an absolute URL. This works for Google, but Windows live was sending back a 400. In my passthrough proxy, I now rewrite the absolute URL to a relative URL, which makes Windows Live happy again.
This fix was in my pass through proxy which I use to manually test the proxy config, so I want to make sure Squid will also send relative urls... the other option is that changing path and the Host header isn't quite right in these proposed patches, which would be a bigtent code change.
from persona-yahoo-bridge.
@gene1wood You'll want to weight in on this bug as well as reading
Thanks!
from persona-yahoo-bridge.
I think we're good, closing, but @gene1wood don't hesitate with questions or feedback.
from persona-yahoo-bridge.
Related Issues (20)
- Mail sending from BigTent down? HOT 6
- b2g: sign in with account mismatch and retry results in blank body of page
- first time sign in with yahoo alias results in 'try again' button screen only HOT 3
- it's common to attach yahoo alias to different accounts due to PIN workflow HOT 1
- Yahoo alias is not automatically signed in after the email verification process is complete HOT 3
- "Sorry, PIN doesn't match" on Win8 & IE10 HOT 4
- Fail to verify gmail addresses on Win8 & IE10 HOT 5
- Persona tries to verify gmail addresses than returns to the "Add an email address" dialog HOT 2
- b2g: 'failed to verify assertion' when verifying Yahoo email HOT 1
- b2g: Persona doesn't verify if email is signed is HOT 2
- Pin field is locked after pressing on Sign in without entering any characters HOT 2
- [ie8] screen height too small on id-mismatch screen; hides buttons. HOT 1
- refresh styling to be consistent with browserid new styling HOT 1
- package.json should include license information
- Fix dev setup bitrot HOT 4
- Tracking - Next deployment ensure no regressions on 920301
- [intermittent 50% users] not able to sign in on iOS7 to summit.mozilla.org HOT 3
- b2g: signing in doesn't close the trusted UI upon login HOT 1
- "Could not connect" error when logging in with yahoo.com address HOT 2
- upgrade node to 0.10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from persona-yahoo-bridge.