-
Notifications
You must be signed in to change notification settings - Fork 9
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
Cannot log in #25
Comments
@DarrenBranford I'll try to take a look at the weekend. Can you double check with the Betfair (cc @jamiei) guys that the scheme should be In the meantime, if you could post your the full code that you are using to try and authenticate to this bug report, it would help in figuring out what the root cause of the problem is. For example, does it look something like:
If it looks something like that, it might be worthwhile to take a look at the connectionError and apiError variables in the callback block and see whether they have any additional information? |
@seanoshea Thanks, I will double check the scheme. I was actually using the example project to try to log in, so the code is the same. The connectionError and apiError are both null. |
@DarrenBranford yep - I believe you can do a non-interactive login using HTTPS (ala a bot - most of the Betfair sample code are based off this), but the iOS APING client expects an interactive login as far as I can remember. |
@seanoshea What is *scheme used for in this instance? The documentation for the non-interactive login (https://api.developer.betfair.com/services/webapps/docs/display/1smk3cen4v3lu3yomq5qye0ni/Interactive+Login+-+Desktop+Application) specifies both the non-interactive login URLs and the default redirect URLs as https. |
@jamiei It's the redirectURL I believe. This is the url that identitysso POSTs back to when the login was successful. See the |
@seanoshea Thanks for the clarification regarding interactive and non-interactive login; I had previously got the interactive login up and running before I came across this repository, but was experiencing "DSC-0024" when making any other calls to the API. I was hoping that the SDK would help me trace my problem. |
Looks like
but I'm not sure what the correct recourse to that issue is. If we can figure out what the correct scheme parameter is for the login API call, I think all the rest of the API calls should fall into place. |
@seanoshea the correct scheme is https but the login request still appears to be broken. Can you confirm that the parameters required via BNGExampleViewController.m are used to construct the URL below? https://identitysso.betfair.com/view/login?product=&url= Using ://www.betfair.com instead of ://ios.betfair.com/login also doesn't work as the redirect URL for a white-listed App Key. |
@nugster - yep, the parameters in the |
Has this been fixed? I am having similar issues regarding logging in. I am using the sample BNGExampleApplication supplied with the API. |
@seanoshea After successfully cloning the CocoaPod (thank you for fixing that) I found that I am unable to log in. The log message does not provide an error.
I added another NSLog to try to capture some more info.
That seems to suggest that the ssoKey is not being generated/passed on.
For reference, my setup looks like this:
The appKey has been whitelisted and my client is enrolled in the vendor program.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: