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

Google SSO with passport-google very slow on production server #15

Open
louischatriot opened this issue Mar 21, 2013 · 2 comments
Open

Comments

@louischatriot
Copy link

Hey Jared,

I updated issue #14 but couldn't reopen it so I'm not sure you saw it. In short, throttling doesn't have an impact on the speed of signin. Even on my dev machine, it still takes about twice as much as what I saw on other websites.

To be clearer, here are the two places that take a lot of time. Both are in file passport-google/node_modules/passport-openid/lib/passport-openid/trategy.js, in the function defined by Strategy.prototype.authenticate (in my version its line 123). Here is what happens:

  1. This function is called immediately upon click on the login button, and executes the else of the big if clause. It immediately arrives at this._relyingParty.authenticate (line 195 for me) which takes about 3s to call its callback
  2. The call back calls my return url which in turns calls this function again, immediately. This time we are the big if condition is satisfied.
  3. this._relyingParty.verifyAssertion is immediately called (line 144 for me) but takes a further 1.2s to call its callback.
  4. Once the callback is called, the rest of the process is instantaneous (~10ms).

So I am interested in understanding what this._relyingParty.authenticate and this._relyingParty.verifyAssertion do that can take so much time.

Thanks again,
Louis

@nicholsonjf
Copy link

I'm having this same issue. Frustrating that there was never any response to this. Did you ever find any solution to this problem?

@mahdipakravan-dev
Copy link

And Also i searching for a response...
Nothing...

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