-
Notifications
You must be signed in to change notification settings - Fork 16
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
Login immediately fails #4
Comments
I see that you're using eBay sandbox (judging by your URL). |
I'll try to do that, thanks for the prompt responses! |
In production I run into this failing immediately aswell. |
@nambrot did you manage to get it to work? |
I'm working with Samir, so unfortunately not. On Sunday, November 4, 2012, itayadler wrote:
|
@itayadler are you guys still using this in production? We can not seem to be able to figure it out. We make a successful call to eBay to get the SessionID, so I assume that the setup can't be too off, but really the login_url immediately fails without any user interaction. And eBay is unfortunately not very helpful with any error message :( |
after additional hours of debugging I found the nasty one: The original
however, that failed immediately. After looking deep into the docs (on a completely different part of it instead of Open eBay), I found out that this works for us:
We then got to a login page finally, however on return, it seems like the gem expects sid to be passed from eBay which it doesn't seem to do (anymore). So we had to pass the session id in the ruparams:
I'd be happy to do a pull request on this one, however we still had a complication where it wouldn't work in the sandbox environment, but since we can just specify another RuName to redirect to localhost, we are not sure whether that's acceptable or not. Thanks again so much for pointing us to the right direction! |
We have a different RuName for each environment(development, staging, production). |
Thanks for the always quick response. Is there a practical difference between Signin and SingleSignOn? |
Yup, SingleSignOn skips the application approval dialog, so it's a much Itay Adler On Wed, Nov 7, 2012 at 6:54 PM, nambrot notifications@github.com wrote:
|
That is pretty interesting. Is there a higher barrier to be approved by On Wed, Nov 7, 2012 at 6:04 PM, itayadler notifications@github.com wrote:
|
That's all I know about this, let's see if Erez knows more about this :). Itay Adler On Wed, Nov 7, 2012 at 7:06 PM, nambrot notifications@github.com wrote:
|
Hi, Generally, 3rd parties cannot skip the authorization window as a part of the sign-in process (that's internal for eBay implementations) G'luck, From: itayadler <notifications@github.commailto:notifications@github.com> That's all I know about this, let's see if Erez knows more about this :). Itay Adler On Wed, Nov 7, 2012 at 7:06 PM, nambrot <notifications@github.commailto:notifications@github.com> wrote:
— |
That's funny. I had the same issue as nambrot 2 days ago, and solved it in exactly the same way without reading this thread :) I now get back the request.env['omniauth.auth'] to the /auth/ebay/callback route, so it works. I didn't even realise there was another way to use OAuth with ebay (ie. SingleSignIn). Since there's no documentation talking about Ebay approval process on here, most people are probably expecting it to work with the 'simple' case (SignIn). BTW: The user tokens you will get can be stored and reused so it's not like you need to authenticate to Ebay each time the user visits the site, but they may have to authenticate with your app to match it up. You just need the session ID which you can get using just the runame. |
thanks for the pull request, ebays documentation is indeed suboptimal in this regard. |
Hey there,
I'm sorry to open up another issue again, but SSL works super now :)
The problem we are facing is that the request phase seems to work just fine, we are getting a session id, however, eBay immediately redirects us back to the reject URL, without us every seeing the login screen. I assume the login-redirect must be broken somehow, unfortunately I have no knowledge in the matter. The redirect redirects to:
https://signin.sandbox.ebay.com/ws/eBayISAPI.dll?SingleSignOn&runame={runame}&sid={sid}, as it should be judging from
ebay_api.rb
Is there anything that we are grossly overlooking?
The text was updated successfully, but these errors were encountered: